Skip to content

Commit 74e4ed2

Browse files
committed
Move the test to nullptr.cpp, simplified it, added CHECK-LABEL.
1 parent a0e4f30 commit 74e4ed2

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

clang/test/CodeGenCXX/nullptr.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,10 @@ namespace PR39528 {
7070
void f(nullptr_t);
7171
void g() { f(null); }
7272
}
73+
74+
// CHECK-LABEL: define {{.*}}pr137276
75+
// CHECK: {{^}} store i64 0, ptr %arr, align 8{{$}}
76+
void pr137276(nullptr_t np, int i) {
77+
long arr[] = { long(np), i, 0 };
78+
(void)arr;
79+
}

clang/test/CodeGenCXX/pr137276.cpp

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

0 commit comments

Comments
 (0)