[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / CodeGen / 2008-07-29-override-alias-decl.c
blob0c2d0c6ca57617a0a74998be08162dd29905fa15
1 // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
3 int x() { return 1; }
5 // CHECK: ret i32 1
8 int f() __attribute__((weak, alias("x")));
10 /* Test that we link to the alias correctly instead of making a new
11 forward definition. */
12 int f();
13 int h() {
14 return f();
17 // CHECK: [[call:%.*]] = call i32 (...)* @f()
18 // CHECK: ret i32 [[call]]