1 // UNSUPPORTED: system-aix, system-windows 2 // RUN: cat %s | clang-repl | FileCheck %s 3 4 extern "C" int printf(const char *, ...); bar()5int __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 14