From 81b06be055e74a3c23a1c8f17ead97f9f76335ee Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 13 Aug 2008 20:20:35 +0000 Subject: Teach constant folding that an inttoptr of a ptrtoint can be turned into a bitcast if the integer is at least as wide as a pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54752 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendAda/constant_fold.ads | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/FrontendAda/constant_fold.ads (limited to 'test/FrontendAda') diff --git a/test/FrontendAda/constant_fold.ads b/test/FrontendAda/constant_fold.ads new file mode 100644 index 0000000..6223e7c --- /dev/null +++ b/test/FrontendAda/constant_fold.ads @@ -0,0 +1,4 @@ +-- RUN: %llvmgcc -S -emit-llvm %s -o - | not grep ptrtoint +package Constant_Fold is + Error : exception; +end; -- cgit v1.1