diff options
author | Neil Booth <neilb@earthling.net> | 2000-12-02 10:16:01 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-12-02 10:16:01 +0000 |
commit | 692344cfed8b78fc1e636b77145ed12a03400e01 (patch) | |
tree | c488bf0f324f7df4ffb0aa29c9cd0ff19dc9cee3 /gcc/testsuite/gcc.dg/cpp | |
parent | fef1de5d11978712e2e74c0d8d057d1c7e05bbfa (diff) | |
download | gcc-692344cfed8b78fc1e636b77145ed12a03400e01.zip gcc-692344cfed8b78fc1e636b77145ed12a03400e01.tar.gz gcc-692344cfed8b78fc1e636b77145ed12a03400e01.tar.bz2 |
c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests.
* gcc.dg/testsuite/c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c,
c94.c,c94-pedantic.c,c99.c,c99-pedantic.c,gnuc89.c,gnuc89-pedantic.c,
gnuc99.c,gnuc99-pedantic.c: New tests.
From-SVN: r37948
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/c++98-pedantic.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/c++98.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/c89-pedantic.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/c89.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/c94-pedantic.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/c94.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/c99-pedantic.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/c99.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/gnuc89-pedantic.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/gnuc89.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/gnuc99-pedantic.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/gnuc99.c | 10 |
12 files changed, 120 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/c++98-pedantic.c b/gcc/testsuite/gcc.dg/cpp/c++98-pedantic.c new file mode 100644 index 0000000..3192a9f --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/c++98-pedantic.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=c++98 -pedantic" } */ + +/* This file is for testing the preprocessor in -std=c++98 -pedantic mode. + Neil Booth, 2 Dec 2000. */ + +#if 1LL /* { dg-warning "too many" } */ +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/c++98.c b/gcc/testsuite/gcc.dg/cpp/c++98.c new file mode 100644 index 0000000..0ec4f35 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/c++98.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=c++98" } */ + +/* This file is for testing the preprocessor in -std=c++98 mode. + Neil Booth, 2 Dec 2000. */ + +#if 1LL +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/c89-pedantic.c b/gcc/testsuite/gcc.dg/cpp/c89-pedantic.c new file mode 100644 index 0000000..75051fd --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/c89-pedantic.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=c89 -pedantic" } */ + +/* This file is for testing the preprocessor in -std=c89 -pedantic mode. + Neil Booth, 2 Dec 2000. */ + +#if 1LL /* { dg-warning "too many" } */ +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/c89.c b/gcc/testsuite/gcc.dg/cpp/c89.c new file mode 100644 index 0000000..8c5fd28 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/c89.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=c89" } */ + +/* This file is for testing the preprocessor in -std=c89 mode. + Neil Booth, 2 Dec 2000. */ + +#if 1LL +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/c94-pedantic.c b/gcc/testsuite/gcc.dg/cpp/c94-pedantic.c new file mode 100644 index 0000000..589d23c --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/c94-pedantic.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=iso9899:199409 -pedantic" } */ + +/* This file is for testing the preprocessor in -std=iso9899:199409 + -pedantic mode. Neil Booth, 2 Dec 2000. */ + +#if 1LL /* { dg-warning "too many" } */ +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/c94.c b/gcc/testsuite/gcc.dg/cpp/c94.c new file mode 100644 index 0000000..d7a5e75 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/c94.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=iso9899:199409" } */ + +/* This file is for testing the preprocessor in -std=iso9899:199409 mode. + Neil Booth, 2 Dec 2000. */ + +#if 1LL +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/c99-pedantic.c b/gcc/testsuite/gcc.dg/cpp/c99-pedantic.c new file mode 100644 index 0000000..0128a32 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/c99-pedantic.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=c99 -pedantic" } */ + +/* This file is for testing the preprocessor in -std=c99 -pedantic mode. + Neil Booth, 2 Dec 2000. */ + +#if 1LL +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/c99.c b/gcc/testsuite/gcc.dg/cpp/c99.c new file mode 100644 index 0000000..b74ff63 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/c99.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=c99" } */ + +/* This file is for testing the preprocessor in -std=c99 mode. + Neil Booth, 2 Dec 2000. */ + +#if 1LL +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/gnuc89-pedantic.c b/gcc/testsuite/gcc.dg/cpp/gnuc89-pedantic.c new file mode 100644 index 0000000..f9cd968 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/gnuc89-pedantic.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=gnu89 -pedantic" } */ + +/* This file is for testing the preprocessor in -std=gnu89 -pedantic mode. + Neil Booth, 2 Dec 2000. */ + +#if 1LL /* { dg-warning "too many" } */ +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/gnuc89.c b/gcc/testsuite/gcc.dg/cpp/gnuc89.c new file mode 100644 index 0000000..b655ead --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/gnuc89.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=gnu89" } */ + +/* This file is for testing the preprocessor in -std=gnu89 mode. + Neil Booth, 2 Dec 2000. */ + +#if 1LL +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/gnuc99-pedantic.c b/gcc/testsuite/gcc.dg/cpp/gnuc99-pedantic.c new file mode 100644 index 0000000..9e3550d --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/gnuc99-pedantic.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=gnu99 -pedantic" } */ + +/* This file is for testing the preprocessor in -std=gnu99 -pedantic mode. + Neil Booth, 2 Dec 2000. */ + +#if 1LL +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/gnuc99.c b/gcc/testsuite/gcc.dg/cpp/gnuc99.c new file mode 100644 index 0000000..5e2ee29 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/gnuc99.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-std=gnu99" } */ + +/* This file is for testing the preprocessor in -std=gnu99 mode. + Neil Booth, 2 Dec 2000. */ + +#if 1LL +#endif |