llvm-for-llvmta/tools/clang/test/SemaCXX/static-initializers.cpp
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

12 lines
154 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
int f() {
return 10;
}
void g() {
static int a = f();
}
static int b = f();