File: test_cxx11_staticinit.cpp

package info (click to toggle)
libcrypto%2B%2B 8.9.0-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,960 kB
  • sloc: cpp: 110,116; asm: 10,493; sh: 8,937; makefile: 55
file content (11 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
// https://en.cppreference.com/w/cpp/feature_test
// Apple bug https://bugs.llvm.org/show_bug.cgi?id=47012.
int main(int argc, char* argv[])
{
#if __cpp_threadsafe_static_init >= 200806L
    int x[1];
#else
    int x[-1];
#endif
    return 0;
}