summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/if-scope-c99.c
blob: c6ce9b68735ff163f7d6c9c944a8a6790760c28d (plain)
1
2
3
4
5
6
7
8
// RUN: clang -parse-ast -verify --std=c99 %s

int f (int z)
{ 
   if (z > sizeof (enum {a, b}))
      return a;
   return b; // expected-error{{use of undeclared identifier}}
}
OpenPOWER on IntegriCloud