Debian Codegraph @

clang/test/Interpreter/execute-weak.cpp

raw
1 // UNSUPPORTED: system-windows
2 // RUN: cat %s | clang-repl | FileCheck %s
3
4 extern "C" int printf(const char *, ...);
5 int __attribute__((weak)) bar() { return 42; }
6 auto r4 = printf("bar() = %d\n", bar());
7 // CHECK: bar() = 42
8
9 int a = 12;
10 static __typeof(a) b __attribute__((__weakref__("a")));
11 int c = b;
12
13 %quit