Skip to content

Commit 98f9219

Browse files
committed
add tests
1 parent 302bd61 commit 98f9219

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s
2+
// RUN: not %clang_cc1 -fdiagnostics-parseable-fixits -std=c++23 %s 2>&1 | FileCheck %s
3+
4+
#define C(x) case x
5+
6+
void t1(int a) {
7+
switch (a) {
8+
C(10) // expected-error {{expected ':' after 'case'}}
9+
}
10+
}
11+
// CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:10-[[@LINE-3]]:10}:":"

0 commit comments

Comments
 (0)