brintos

brintos / llvm-project-archived public Read only

0
0
Text · 336 B · 61e4df6 Raw
12 lines · c
1// RUN: %clang_cc1 -pedantic -Wunused-label -fno-diagnostics-show-line-numbers -x c %s 2>&1 | FileCheck %s -strict-whitespace
2
3// This file intentionally uses a CRLF newline style
4// CHECK: warning: unused label 'ddd'
5// CHECK-NEXT: {{^  ddd:}}
6// CHECK-NEXT: {{^  \^~~~$}}
7// CHECK-NOT: {{^  ;}}
8void f(void) {
9  ddd:
10  ;
11}
12