summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/sizeof1.C
blob: fa84481fabfb4a2560ac2a33844f0b3db49dd46b (plain)
1
2
3
4
5
6
7
// PR c++/12989

struct A
{
  int foo() { return sizeof(bar); } // { dg-error "" }
  int bar();
};