Debian Codegraph @

gcc/testsuite/g++.dg/ext/lvaddr.C

raw
1 // Copyright (C) 2002 Free Software Foundation
2 // Contributed by Matt Austern <[email protected]>
3
4 // { dg-do compile }
5
6 void f()
7 {
8 int n;
9 char* p = &(char) n; // { dg-error "14:lvalue" }
10 }