llvm-project
13 строк · 325.0 Байт
1// UNSUPPORTED: system-aix, system-windows
2// RUN: cat %s | clang-repl | FileCheck %s
3
4extern "C" int printf(const char *, ...);5int __attribute__((weak)) bar() { return 42; }6auto r4 = printf("bar() = %d\n", bar());7// CHECK: bar() = 42
8
9int a = 12;10static __typeof(a) b __attribute__((__weakref__("a")));11int c = b;12
13%quit14