summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/constexpr.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-17 22:19:23 +0000
committerChris Lattner <sabre@nondot.org>2003-04-17 22:19:23 +0000
commit2bee86d9df844df2c29e47dc81d3c4f23780e7a6 (patch)
treeb715deed966779d3cb5ffe6c0c4c003a90fc58f3 /llvm/test/Feature/constexpr.ll
parente509bd47bf80a062f889cd8b85b4c3a055bd7b3d (diff)
downloadbcm5719-llvm-2bee86d9df844df2c29e47dc81d3c4f23780e7a6.tar.gz
bcm5719-llvm-2bee86d9df844df2c29e47dc81d3c4f23780e7a6.zip
Add a simple test for hex constant integers
llvm-svn: 5803
Diffstat (limited to 'llvm/test/Feature/constexpr.ll')
-rw-r--r--llvm/test/Feature/constexpr.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Feature/constexpr.ll b/llvm/test/Feature/constexpr.ll
index b5c0584c335..5da6d806116 100644
--- a/llvm/test/Feature/constexpr.ll
+++ b/llvm/test/Feature/constexpr.ll
@@ -6,6 +6,9 @@
;; Test constant cast expressions
;;-------------------------------
+global ulong u0x00001 ; hexadecimal unsigned integer constants
+global long s0x0012312 ; hexadecimal signed integer constants
+
%t2 = global int* %t1 ;; Forward reference without cast
%t3 = global uint* cast (int* %t1 to uint*) ;; Forward reference with cast
%t1 = global int 4 ;; int* %0
OpenPOWER on IntegriCloud