hanchenye-llvm-project/clang/test/CodeGenCXX/static-data-member.cpp

9 lines
100 B
C++

// RUN: %clang_cc1 -emit-llvm -o - %s
struct S {
static int i;
};
void f() {
int a = S::i;
}