From 97a3f2bd661c83edaef3f289007531e93d022db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Tue, 13 Apr 2010 16:26:01 +0000 Subject: cpp.exp: Test also c-c++-common/cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2010-04-13 Manuel López-Ibáñez * 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. From-SVN: r158275 --- gcc/testsuite/c-c++-common/cpp/normalize-3.c | 35 ++++++++++++++++++++++ .../c-c++-common/cpp/warning-directive-1.c | 4 +++ .../c-c++-common/cpp/warning-directive-2.c | 5 ++++ .../c-c++-common/cpp/warning-directive-3.c | 4 +++ .../c-c++-common/cpp/warning-directive-4.c | 4 +++ 5 files changed, 52 insertions(+) create mode 100644 gcc/testsuite/c-c++-common/cpp/normalize-3.c create mode 100644 gcc/testsuite/c-c++-common/cpp/warning-directive-1.c create mode 100644 gcc/testsuite/c-c++-common/cpp/warning-directive-2.c create mode 100644 gcc/testsuite/c-c++-common/cpp/warning-directive-3.c create mode 100644 gcc/testsuite/c-c++-common/cpp/warning-directive-4.c (limited to 'gcc/testsuite/c-c++-common/cpp') diff --git a/gcc/testsuite/c-c++-common/cpp/normalize-3.c b/gcc/testsuite/c-c++-common/cpp/normalize-3.c new file mode 100644 index 0000000..ae0184c --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/normalize-3.c @@ -0,0 +1,35 @@ +/* { dg-do preprocess } */ +/* { dg-options "-std=c99 -fextended-identifiers -Wnormalized=id" { target c } } */ +/* { dg-options "-fextended-identifiers -Wnormalized=id" { target c++ } } */ + +\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/c-c++-common/cpp/warning-directive-1.c b/gcc/testsuite/c-c++-common/cpp/warning-directive-1.c new file mode 100644 index 0000000..e23d240 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/warning-directive-1.c @@ -0,0 +1,4 @@ +// { dg-do preprocess } +// { dg-options "-std=gnu99 -fdiagnostics-show-option" { target c } } +// { dg-options "-fdiagnostics-show-option" { target c++ } } +#warning "Printed" // { dg-warning "\"Printed\" .-Wcpp." } diff --git a/gcc/testsuite/c-c++-common/cpp/warning-directive-2.c b/gcc/testsuite/c-c++-common/cpp/warning-directive-2.c new file mode 100644 index 0000000..15c74d2 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/warning-directive-2.c @@ -0,0 +1,5 @@ +// { dg-do preprocess } +// { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=cpp" { target c } } +// { dg-options "-fdiagnostics-show-option -Werror=cpp" { target c++ } } +/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */ +#warning "Printed" // { dg-error "\"Printed\" .-Wcpp." } diff --git a/gcc/testsuite/c-c++-common/cpp/warning-directive-3.c b/gcc/testsuite/c-c++-common/cpp/warning-directive-3.c new file mode 100644 index 0000000..0c50a31 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/warning-directive-3.c @@ -0,0 +1,4 @@ +// { dg-do preprocess } +// { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror -Wno-error=cpp" { target c } } +// { dg-options "-fdiagnostics-show-option -Werror -Wno-error=cpp" { target c++ } } +#warning "Printed" // { dg-warning "\"Printed\" .-Wcpp." } diff --git a/gcc/testsuite/c-c++-common/cpp/warning-directive-4.c b/gcc/testsuite/c-c++-common/cpp/warning-directive-4.c new file mode 100644 index 0000000..23069f8 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/warning-directive-4.c @@ -0,0 +1,4 @@ +// { dg-do preprocess } +// { dg-options "-std=gnu99 -fdiagnostics-show-option -Wno-cpp" { target c } } +// { dg-options "-fdiagnostics-show-option -Wno-cpp" { target c++ } } +#warning "Not printed" // { dg-bogus "." } -- cgit v1.1