2
0

local-linkage-default-visibility.3.4.ll 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ; RUN: llvm-dis < %s.bc | FileCheck %s
  2. ; RUN: verify-uselistorder < %s.bc
  3. ; local-linkage-default-visibility.3.4.ll.bc was generated by passing this file
  4. ; to llvm-as-3.4. The test checks that LLVM upgrades visibility of symbols
  5. ; with local linkage to default visibility.
  6. @default.internal.var = internal global i32 0
  7. ; CHECK: @default.internal.var = internal global i32 0
  8. @hidden.internal.var = internal hidden global i32 0
  9. ; CHECK: @hidden.internal.var = internal global i32 0
  10. @protected.internal.var = internal protected global i32 0
  11. ; CHECK: @protected.internal.var = internal global i32 0
  12. @default.private.var = private global i32 0
  13. ; CHECK: @default.private.var = private global i32 0
  14. @hidden.private.var = private hidden global i32 0
  15. ; CHECK: @hidden.private.var = private global i32 0
  16. @protected.private.var = private protected global i32 0
  17. ; CHECK: @protected.private.var = private global i32 0
  18. @global = global i32 0
  19. @default.internal.alias = alias internal i32* @global
  20. ; CHECK: @default.internal.alias = internal alias i32* @global
  21. @hidden.internal.alias = hidden alias internal i32* @global
  22. ; CHECK: @hidden.internal.alias = internal alias i32* @global
  23. @protected.internal.alias = protected alias internal i32* @global
  24. ; CHECK: @protected.internal.alias = internal alias i32* @global
  25. @default.private.alias = alias private i32* @global
  26. ; CHECK: @default.private.alias = private alias i32* @global
  27. @hidden.private.alias = hidden alias private i32* @global
  28. ; CHECK: @hidden.private.alias = private alias i32* @global
  29. @protected.private.alias = protected alias private i32* @global
  30. ; CHECK: @protected.private.alias = private alias i32* @global
  31. define internal void @default.internal() {
  32. ; CHECK: define internal void @default.internal
  33. entry:
  34. ret void
  35. }
  36. define internal hidden void @hidden.internal() {
  37. ; CHECK: define internal void @hidden.internal
  38. entry:
  39. ret void
  40. }
  41. define internal protected void @protected.internal() {
  42. ; CHECK: define internal void @protected.internal
  43. entry:
  44. ret void
  45. }
  46. define private void @default.private() {
  47. ; CHECK: define private void @default.private
  48. entry:
  49. ret void
  50. }
  51. define private hidden void @hidden.private() {
  52. ; CHECK: define private void @hidden.private
  53. entry:
  54. ret void
  55. }
  56. define private protected void @protected.private() {
  57. ; CHECK: define private void @protected.private
  58. entry:
  59. ret void
  60. }