[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / 2008-07-29-override-alias-decl.c
blob6db0cc304804361847a4dde19d14da7d771fb4c5
1 // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
3 int x(void) { return 1; }
5 // CHECK: ret i32 1
8 int f(void) __attribute__((weak, alias("x")));
10 /* Test that we link to the alias correctly instead of making a new
11 forward definition. */
12 int f(void);
13 int h(void) {
14 return f();
17 // CHECK: [[call:%.*]] = call i32 @f()
18 // CHECK: ret i32 [[call]]