Fix a FIXME. _foo.eh symbols are currently always exported so that the linker
[oota-llvm.git] / test / CodeGen / X86 / aliases.ll
index 9bd6140848e1a1e43912c392b1d700e5fee95894..3ed3bd67cef171ff187e55385b0c86e89cc50d2a 100644 (file)
@@ -1,8 +1,10 @@
-; RUN: llvm-as < %s | \
-; RUN:   llc -mtriple=i686-pc-linux-gnu -o %t -f
-; RUN: grep -c set %t   | grep 5
-; RUN: grep -c globl %t | grep 4
-; RUN: grep -c weak %t  | grep 1
+; RUN: llc < %s -mtriple=i686-pc-linux-gnu -asm-verbose=false -o %t
+; RUN: grep { = } %t   | count 16
+; RUN: grep set %t   | count 18
+; RUN: grep globl %t | count 6
+; RUN: grep weak %t  | count 1
+; RUN: grep hidden %t | count 1
+; RUN: grep protected %t | count 1
 
 @bar = external global i32
 @foo1 = alias i32* @bar
@@ -17,6 +19,10 @@ declare i32 @foo_f()
 
 @A = alias bitcast (i32* @bar to i64*)
 
+@bar_h = hidden alias i32* @bar
+
+@bar_p = protected alias i32* @bar
+
 define i32 @test() {
 entry:
    %tmp = load i32* @foo1