summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-13 16:26:01 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-13 16:26:01 +0000
commitc95c91985a0ff9ca1ac9540424bcb6c44b5ea519 (patch)
treeb46bf9dfe0b91fd9a33c5d4fbfbc339cce5202e0 /gcc/testsuite/gcc.dg/cpp
parentc6feb9f122942ce917541aae8fead534ce6b9929 (diff)
downloadgcc-c95c91985a0ff9ca1ac9540424bcb6c44b5ea519.tar.gz
2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
* gcc.dg/cpp/cpp.exp: Test also c-c++-common/cpp. * g++.dg/dg.exp: Likewise. * gcc.dg/cpp/warning-directive-1.c: Move to ... * c-c++-common/cpp/warning-directive-1.c: ... here. * gcc.dg/cpp/warning-directive-2.c: Move to ... * c-c++-common/cpp/warning-directive-2.c: ... here. * gcc.dg/cpp/warning-directive-3.c: Move to ... * c-c++-common/cpp/warning-directive-3.c: ... here. * gcc.dg/cpp/warning-directive-4.c: Move to ... * c-c++-common/cpp/warning-directive-4.c: ... here. * g++.dg/cpp/warning-directive-1.C: Delete. * g++.dg/cpp/warning-directive-2.C: Delete. * g++.dg/cpp/warning-directive-3.C: Delete. * g++.dg/cpp/warning-directive-4.C: Delete. * gcc.dg/cpp/normalised-3.c: Delete. * g++.dg/cpp/normalised-1.C: Rename as ... * c-c++-common/cpp/normalised-3.c: ... this. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158275 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cpp.exp5
-rw-r--r--gcc/testsuite/gcc.dg/cpp/normalize-3.c34
-rw-r--r--gcc/testsuite/gcc.dg/cpp/warning-directive-1.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/warning-directive-2.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/warning-directive-3.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/warning-directive-4.c4
6 files changed, 5 insertions, 50 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/cpp.exp b/gcc/testsuite/gcc.dg/cpp/cpp.exp
index acf0898407b..311223ff1f7 100644
--- a/gcc/testsuite/gcc.dg/cpp/cpp.exp
+++ b/gcc/testsuite/gcc.dg/cpp/cpp.exp
@@ -39,5 +39,10 @@ dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{c,S} ]] \
"" $DEFAULT_CFLAGS
+# C/C++ common tests.
+dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cpp/*.{c,S} ]] \
+ " -Wc++-compat " ""
+
+
# All done.
dg-finish
diff --git a/gcc/testsuite/gcc.dg/cpp/normalize-3.c b/gcc/testsuite/gcc.dg/cpp/normalize-3.c
deleted file mode 100644
index a4f496fbb3a..00000000000
--- a/gcc/testsuite/gcc.dg/cpp/normalize-3.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* { dg-do preprocess } */
-/* { dg-options "-std=c99 -fextended-identifiers -Wnormalized=id" } */
-
-\u00AA
-\u00B7
-\u0F43 /* { dg-warning "not in NFC" } */
-a\u05B8\u05B9\u05B9\u05BBb
- a\u05BB\u05B9\u05B8\u05B9b /* { dg-warning "not in NFC" } */
-\u09CB
-\u09C7\u09BE /* { dg-warning "not in NFC" } */
-\u0B4B
-\u0B47\u0B3E /* { dg-warning "not in NFC" } */
-\u0BCA
-\u0BC6\u0BBE /* { dg-warning "not in NFC" } */
-\u0BCB
-\u0BC7\u0BBE /* { dg-warning "not in NFC" } */
-\u0CCA
-\u0CC6\u0CC2 /* { dg-warning "not in NFC" } */
-\u0D4A
-\u0D46\u0D3E /* { dg-warning "not in NFC" } */
-\u0D4B
-\u0D47\u0D3E /* { dg-warning "not in NFC" } */
-
-K
-\u212A
-
-\u03AC
-\u1F71 /* { dg-warning "not in NFC" } */
-
-\uAC00
-\u1100\u1161
-\uAC01
-\u1100\u1161\u11A8
-\uAC00\u11A8
diff --git a/gcc/testsuite/gcc.dg/cpp/warning-directive-1.c b/gcc/testsuite/gcc.dg/cpp/warning-directive-1.c
deleted file mode 100644
index cb4bd326cc2..00000000000
--- a/gcc/testsuite/gcc.dg/cpp/warning-directive-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-// { dg-do preprocess }
-// { dg-options "-std=gnu99 -fdiagnostics-show-option" }
-
-#warning "Printed" // { dg-warning "\"Printed\" .-Wcpp." }
diff --git a/gcc/testsuite/gcc.dg/cpp/warning-directive-2.c b/gcc/testsuite/gcc.dg/cpp/warning-directive-2.c
deleted file mode 100644
index 753b84a692e..00000000000
--- a/gcc/testsuite/gcc.dg/cpp/warning-directive-2.c
+++ /dev/null
@@ -1,4 +0,0 @@
-// { dg-do preprocess }
-// { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=cpp" }
-/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
-#warning "Printed" // { dg-error "\"Printed\" .-Wcpp." }
diff --git a/gcc/testsuite/gcc.dg/cpp/warning-directive-3.c b/gcc/testsuite/gcc.dg/cpp/warning-directive-3.c
deleted file mode 100644
index 48c97f3ac5b..00000000000
--- a/gcc/testsuite/gcc.dg/cpp/warning-directive-3.c
+++ /dev/null
@@ -1,4 +0,0 @@
-// { dg-do preprocess }
-// { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror -Wno-error=cpp" }
-
-#warning "Printed" // { dg-warning "\"Printed\" .-Wcpp." }
diff --git a/gcc/testsuite/gcc.dg/cpp/warning-directive-4.c b/gcc/testsuite/gcc.dg/cpp/warning-directive-4.c
deleted file mode 100644
index 2eb101765da..00000000000
--- a/gcc/testsuite/gcc.dg/cpp/warning-directive-4.c
+++ /dev/null
@@ -1,4 +0,0 @@
-// { dg-do preprocess }
-// { dg-options "-std=gnu99 -fdiagnostics-show-option -Wno-cpp" }
-
-#warning "Not printed" // { dg-bogus "." }