☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
CXX
/
class
/
class.local
/
p4.cpp
☽
☼
clang/test/CXX/class/class.local/p4.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
void f() {
4
struct X {
5
static int a; // expected-error {{static data member 'a' not allowed in local struct 'X'}}
6
int b;
7
8
static void f() { }
9
};
10
}