| OLD | NEW |
| 1 ; RUN: pnacl-abicheck < %s | FileCheck %s | 1 ; RUN: not pnacl-abicheck < %s | FileCheck %s |
| 2 | 2 |
| 3 | 3 |
| 4 ; Allowed cases | 4 ; Allowed cases |
| 5 | 5 |
| 6 @bytes = internal global [7 x i8] c"abcdefg" | 6 @bytes = internal global [7 x i8] c"abcdefg" |
| 7 | 7 |
| 8 @ptr_to_ptr = internal global i32 ptrtoint (i32* @ptr to i32) | 8 @ptr_to_ptr = internal global i32 ptrtoint (i32* @ptr to i32) |
| 9 @ptr_to_func = internal global i32 ptrtoint (void ()* @func to i32) | 9 @ptr_to_func = internal global i32 ptrtoint (void ()* @func to i32) |
| 10 | 10 |
| 11 @compound = internal global <{ [3 x i8], i32 }> | 11 @compound = internal global <{ [3 x i8], i32 }> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 ; The struct type must be anonymous. | 60 ; The struct type must be anonymous. |
| 61 %struct = type <{ [3 x i8], i32 }> | 61 %struct = type <{ [3 x i8], i32 }> |
| 62 @named_struct = internal global %struct | 62 @named_struct = internal global %struct |
| 63 <{ [3 x i8] c"foo", i32 ptrtoint (void ()* @func to i32) }> | 63 <{ [3 x i8] c"foo", i32 ptrtoint (void ()* @func to i32) }> |
| 64 ; CHECK: Global variable named_struct has non-flattened initializer | 64 ; CHECK: Global variable named_struct has non-flattened initializer |
| 65 | 65 |
| 66 | 66 |
| 67 define internal void @func() { | 67 define internal void @func() { |
| 68 ret void | 68 ret void |
| 69 } | 69 } |
| OLD | NEW |