summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/CBackend/2002-08-19-ConstPointerRef.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/CBackend/2002-08-19-ConstPointerRef.ll')
-rw-r--r--llvm/test/CodeGen/CBackend/2002-08-19-ConstPointerRef.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/CBackend/2002-08-19-ConstPointerRef.ll b/llvm/test/CodeGen/CBackend/2002-08-19-ConstPointerRef.ll
new file mode 100644
index 00000000000..c8d12013e92
--- /dev/null
+++ b/llvm/test/CodeGen/CBackend/2002-08-19-ConstPointerRef.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
+
+; Test const pointer refs & forward references
+
+%t3 = global int * %t1 ;; Forward reference
+%t1 = global int 4
+
OpenPOWER on IntegriCloud