mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 15:09:39 +08:00
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
This commit is contained in:
parent
fef1de5d11
commit
692344cfed
@ -1,3 +1,9 @@
|
||||
2000-12-02 Neil Booth <neilb@earthling.net>
|
||||
|
||||
* gcc.dg/cpp/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.
|
||||
|
||||
2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||
|
||||
* gcc.dg/format-no-exargs-1.c, gcc.dg/format-no-y2k-1.c,
|
||||
|
10
gcc/testsuite/gcc.dg/cpp/c++98-pedantic.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/c++98-pedantic.c
Normal file
@ -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
|
10
gcc/testsuite/gcc.dg/cpp/c++98.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/c++98.c
Normal file
@ -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
|
10
gcc/testsuite/gcc.dg/cpp/c89-pedantic.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/c89-pedantic.c
Normal file
@ -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
|
10
gcc/testsuite/gcc.dg/cpp/c89.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/c89.c
Normal file
@ -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
|
10
gcc/testsuite/gcc.dg/cpp/c94-pedantic.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/c94-pedantic.c
Normal file
@ -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
|
10
gcc/testsuite/gcc.dg/cpp/c94.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/c94.c
Normal file
@ -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
|
10
gcc/testsuite/gcc.dg/cpp/c99-pedantic.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/c99-pedantic.c
Normal file
@ -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
|
10
gcc/testsuite/gcc.dg/cpp/c99.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/c99.c
Normal file
@ -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
|
10
gcc/testsuite/gcc.dg/cpp/gnuc89-pedantic.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/gnuc89-pedantic.c
Normal file
@ -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
|
10
gcc/testsuite/gcc.dg/cpp/gnuc89.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/gnuc89.c
Normal file
@ -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
|
10
gcc/testsuite/gcc.dg/cpp/gnuc99-pedantic.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/gnuc99-pedantic.c
Normal file
@ -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
|
10
gcc/testsuite/gcc.dg/cpp/gnuc99.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/gnuc99.c
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user