diff options
Diffstat (limited to 'test/CodeGen/NVPTX/weak-linkage.ll')
-rw-r--r-- | test/CodeGen/NVPTX/weak-linkage.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/weak-linkage.ll b/test/CodeGen/NVPTX/weak-linkage.ll new file mode 100644 index 0000000..7a13357 --- /dev/null +++ b/test/CodeGen/NVPTX/weak-linkage.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s + + +; CHECK: .weak .func foo +define weak void @foo() { + ret void +} + +; CHECK: .visible .func bar +define void @bar() { + ret void +} |