summaryrefslogtreecommitdiff
path: root/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
commit681cfb9ab457e0a9b3ed5405a60809cd9a0e517f (patch)
tree51c21f58a42fb3a970fd14fd36a93ed6a7b20983 /test/Feature/constexpr.ll
parent3e8ba107507b698b96c7a8f6981182333cb76df6 (diff)
downloadllvm-681cfb9ab457e0a9b3ed5405a60809cd9a0e517f.tar.gz
llvm-681cfb9ab457e0a9b3ed5405a60809cd9a0e517f.tar.bz2
llvm-681cfb9ab457e0a9b3ed5405a60809cd9a0e517f.tar.xz
Add a simple test for hex constant integers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/constexpr.ll')
-rw-r--r--test/Feature/constexpr.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Feature/constexpr.ll b/test/Feature/constexpr.ll
index b5c0584c33..5da6d80611 100644
--- a/test/Feature/constexpr.ll
+++ b/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