OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
/cp
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto1.C
1
// { dg-options "-std=c++98 -Wc++11-compat" }
2
3
// Test warning for use of auto in C++98 mode with C++11
4
// compatibility warnings
5
void f()
6
{
7
auto int x = 5; // { dg-warning "changes meaning" }
8
}