diff options
author | Douglas Gregor <dgregor@osl.iu.edu> | 2007-01-25 04:02:15 +0000 |
---|---|---|
committer | Doug Gregor <dgregor@gcc.gnu.org> | 2007-01-25 04:02:15 +0000 |
commit | 18103407c6e0e824c5c92ac0a07e6baca6f71f43 (patch) | |
tree | 2a0e3d00a1d4674a956fc576fb03896c9e2e0204 /gcc | |
parent | 527cab2096ca51991db9dd06cccf0ee2bcb16b96 (diff) | |
download | gcc-18103407c6e0e824c5c92ac0a07e6baca6f71f43.zip gcc-18103407c6e0e824c5c92ac0a07e6baca6f71f43.tar.gz gcc-18103407c6e0e824c5c92ac0a07e6baca6f71f43.tar.bz2 |
warn_cxx0x.C: New.
2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
* g++.dg/cpp0x/warn_cxx0x.C: New.
From-SVN: r121160
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a2e86f4..6305695 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-01-24 Douglas Gregor <dgregor@osl.iu.edu> + + * g++.dg/cpp0x/warn_cxx0x.C: New. + 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * gcc.dg/builtins-20.c: Test builtin carg. diff --git a/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C b/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C new file mode 100644 index 0000000..57dfe7b --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C @@ -0,0 +1,7 @@ +// { dg-options "-Wc++0x-compat" } +int static_assert; // { dg-warning "will become a keyword" } + +void foo() +{ + static_assert = 5; +} |