summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/lvaddr.C
blob: 5b217d165949b77f3136652726bcefd57c29b303 (plain)
1
2
3
4
5
6
7
8
9
10
// Copyright (C) 2002 Free Software Foundation
// Contributed by Matt Austern <austern@apple.com>

// { dg-do compile }

void f()
{
  int n;
  char* p = &(char) n;		// { dg-error "lvalue" }
}