repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[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
}