NetBSD/gnu/dist/gcc4/gcc/testsuite/gcc.dg/pr17730-1.c

6 lines
187 B
C

/* Test formatting of message for invalid lvalue. Bug 17730. */
/* { dg-do compile } */
/* { dg-options "" } */
char *p = &'C'; /* { dg-error "error: invalid lvalue in unary '&'" } */