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
2012-06-14 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
lvalue1.C
1
// Test that we complain about the gcc cast-as-lvalue extension.
2
3
int main ()
4
{
5
char c;
6
7
static_cast<int>(c) = 2; // { dg-error "lvalue" "not an lvalue" }
8
9
return c != 2;
10
}