p4.cpp revision bc0a2226c7fcd18b29b6846049e2cfcb872d3593
1// RUN: clang-cc -fsyntax-only -verify %s
2
3void f() {
4 struct X {
5 static int a; // expected-error {{static data member 'a' not allowed in local class 'X'}}
6 int b;
7
8 static void f() { }
9 };
10}
11