Eric Christopher | 328584e | 2012-06-04 21:32:12 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin -std=c++11 %s -o - | FileCheck %s |
| 2 | |
| 3 | union E { |
| 4 | int a; |
| 5 | float b; |
| 6 | int bb() { return a;} |
| 7 | float aa() { return b;} |
| 8 | E() { a = 0; } |
| 9 | }; |
| 10 | |
| 11 | E e; |
| 12 | |
David Blaikie | 8a40cc6 | 2013-03-19 23:10:14 +0000 | [diff] [blame] | 13 | // CHECK: {{.*}} ; [ DW_TAG_union_type ] [E] [line 3, size 32, align 32, offset 0] |
| 14 | // CHECK: {{.*}} ; [ DW_TAG_subprogram ] [line 6] [bb] |
| 15 | // CHECK: {{.*}} ; [ DW_TAG_subprogram ] [line 7] [aa] |
| 16 | // CHECK: {{.*}} ; [ DW_TAG_subprogram ] [line 8] [E] |