| 1 |
// RUN: %clang_cc1 -gkey-instructions -gno-column-info -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - -triple arm64-apple-ios11 \ |
| 2 |
// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank |
| 3 |
|
| 4 |
// RUN: %clang_cc1 -gkey-instructions -gno-column-info -x c %s -debug-info-kind=line-tables-only -emit-llvm -o - -triple arm64-apple-ios11 \ |
| 5 |
// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank |
| 6 |
|
| 7 |
typedef struct { |
| 8 |
char a; |
| 9 |
int x; |
| 10 |
} __attribute((packed)) S; |
| 11 |
|
| 12 |
S getS(); |
| 13 |
void f() { |
| 14 |
// CHECK: [[call:%.*]] = call i40{{.*}}getS{{.*}}, !dbg [[G1R2:!.*]] |
| 15 |
// CHECK: store i40 [[call]], ptr %s, align 1, !dbg [[G1R1:!.*]] |
| 16 |
S s = getS(); |
| 17 |
// CHECK: ret{{.*}}, !dbg [[RET:!.*]] |
| 18 |
} |
| 19 |
|
| 20 |
// CHECK: [[G1R2]] = !DILocation({{.*}}, atomGroup: 1, atomRank: 2) |
| 21 |
// CHECK: [[G1R1]] = !DILocation({{.*}}, atomGroup: 1, atomRank: 1) |
| 22 |
// CHECK: [[RET]] = !DILocation({{.*}}, atomGroup: 2, atomRank: 1) |