diff options
author | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2013-12-08 11:35:09 +0000 |
---|---|---|
committer | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2013-12-08 11:35:09 +0000 |
commit | bb404ec3e5d342999bb053eabb304960e21a1d7b (patch) | |
tree | 7431d555e76f48e93da9f08c385f5280721c018c /llvm | |
parent | 2994f6f77251c68006d281b4a1d4ad738c8ef41e (diff) | |
download | bcm5719-llvm-bb404ec3e5d342999bb053eabb304960e21a1d7b.tar.gz bcm5719-llvm-bb404ec3e5d342999bb053eabb304960e21a1d7b.zip |
Ensure bitcode encoding of visibility styles stays stable. Patch by Boaz Ouriel.
llvm-svn: 196718
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/test/Bitcode/visibility-styles.3.2.ll | 23 | ||||
-rw-r--r-- | llvm/test/Bitcode/visibility-styles.3.2.ll.bc | bin | 0 -> 372 bytes |
2 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/visibility-styles.3.2.ll b/llvm/test/Bitcode/visibility-styles.3.2.ll new file mode 100644 index 00000000000..019b0ef8ddf --- /dev/null +++ b/llvm/test/Bitcode/visibility-styles.3.2.ll @@ -0,0 +1,23 @@ +; RUN: llvm-dis < %s.bc| FileCheck %s
+
+; visibility-styles.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
+; The test checks that LLVM does not silently misread visibility styles of
+; older bitcode files.
+
+@default.var = default global i32 0
+; CHECK: @default.var = global i32 0
+
+@hidden.var = hidden global i32 0
+; CHECK: @hidden.var = hidden global i32 0
+
+@protected.var = protected global i32 0
+; CHECK: @protected.var = protected global i32 0
+
+declare default void @default()
+; CHECK: declare void @default
+
+declare hidden void @hidden()
+; CHECK: declare hidden void @hidden
+
+declare protected void @protected()
+; CHECK: declare protected void @protected
diff --git a/llvm/test/Bitcode/visibility-styles.3.2.ll.bc b/llvm/test/Bitcode/visibility-styles.3.2.ll.bc Binary files differnew file mode 100644 index 00000000000..e2f0b058cce --- /dev/null +++ b/llvm/test/Bitcode/visibility-styles.3.2.ll.bc |