Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Interpreter / execute-weak.cpp
blob85fa5d276f5f468c3bd79c22d2224c594371d263
1 // UNSUPPORTED: system-aix, system-windows
2 // RUN: cat %s | clang-repl | FileCheck %s
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
9 int a = 12;
10 static __typeof(a) b __attribute__((__weakref__("a")));
11 int c = b;
13 %quit