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
m2: Fix up dependencies some more
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
lvalue1.C
blob
43f2d699b9dfb603bbed363f0c2791239d907a09
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 "3:lvalue" "not an lvalue" }
8
9
return c != 2;
10
}