repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
warn_cxx0x.C
blob
e07d33b7faf752bc99f82c118ff6d19e016dad61
1
// { dg-do compile { target c++11 } }
2
// { dg-options "-std=gnu++98 -Wc++11-compat" }
3
int static_assert; // { dg-warning "is a keyword" }
4
int nullptr; // { dg-warning "is a keyword" }
5
6
void foo()
7
{
8
static_assert = 5;
9
nullptr = 5;
10
}