Skip to content

Commit f04cb03

Browse files
committed
restore deleted test
1 parent db87963 commit f04cb03

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions -gno-column-info -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - \
2+
// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank
3+
4+
// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions -gno-column-info -x c %s -debug-info-kind=line-tables-only -emit-llvm -o - \
5+
// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank
6+
7+
// Check atomGroup is reset to start at 1 in each function.
8+
9+
int g;
10+
// CHECK: store{{.*}}, !dbg [[AG:!.*]]
11+
void a() { g = 0; }
12+
13+
// CHECK: store{{.*}}, !dbg [[BG:!.*]]
14+
void b() { g = 0; }
15+
16+
// CHECK: [[A:!.*]] = distinct !DISubprogram(name: "a",
17+
// CHECK: [[AG]] = !DILocation(line: 11, scope: [[A]], atomGroup: 1, atomRank: 1)
18+
// CHECK: [[B:!.*]] = distinct !DISubprogram(name: "b",
19+
// CHECK: [[BG]] = !DILocation(line: 14, scope: [[B]], atomGroup: 1, atomRank: 1)

clang/test/KeyInstructions/multi-func.c

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)