diff options
Diffstat (limited to 'test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll')
-rw-r--r-- | test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll b/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll new file mode 100644 index 0000000..a1b69ef --- /dev/null +++ b/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll @@ -0,0 +1,10 @@ +; RUN: opt < %s -globalopt + +@g = external global i32 + +@a = alias bitcast (i32* @g to i8*) + +define void @f() { + %tmp = load i8* @a + ret void +} |