warn_cxx0x.C: New.
2007-01-24 Douglas Gregor <dgregor@osl.iu.edu> * g++.dg/cpp0x/warn_cxx0x.C: New. From-SVN: r121160
This commit is contained in:
parent
527cab2096
commit
18103407c6
2 changed files with 11 additions and 0 deletions
|
@ -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.
|
||||
|
|
7
gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C
Normal file
7
gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C
Normal file
|
@ -0,0 +1,7 @@
|
|||
// { dg-options "-Wc++0x-compat" }
|
||||
int static_assert; // { dg-warning "will become a keyword" }
|
||||
|
||||
void foo()
|
||||
{
|
||||
static_assert = 5;
|
||||
}
|
Loading…
Add table
Reference in a new issue