summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/NVPTX/alias.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/NVPTX/alias.ll')
-rw-r--r--llvm/test/CodeGen/NVPTX/alias.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/NVPTX/alias.ll b/llvm/test/CodeGen/NVPTX/alias.ll
new file mode 100644
index 00000000000..a2785192769
--- /dev/null
+++ b/llvm/test/CodeGen/NVPTX/alias.ll
@@ -0,0 +1,7 @@
+; RUN: not llc < %s -march=nvptx -mcpu=sm_20 2>&1 | FileCheck %s
+
+; Check that llc dies gracefully when given an alias.
+
+define i32 @a() { ret i32 0 }
+; CHECK: ERROR: Module has aliases
+@b = internal alias i32 (), i32 ()* @a
OpenPOWER on IntegriCloud