xref: /llvm-project/clang/test/Analysis/Inputs/ctu-import.c (revision f761acfb1a737d8a631a5e55b58cdb7c2215baad)
1 
2 // Use an internal, implicitly defined type, called by
3 // a function imported for CTU. This should not crash.
4 int foo(void);
foobar(int skip)5 int foobar(int skip) {
6   __NSConstantString str = {.flags = 1};
7 
8   if (str.flags >= 0)
9     str.flags = 0;
10   return 4;
11 }
12 
testStaticImplicit(void)13 int testStaticImplicit(void) {
14   return foobar(3);
15 }
16