mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 09:06:07 +00:00
12 lines
336 B
C
12 lines
336 B
C
// RUN: %clang_cc1 -pedantic -Wunused-label -fno-diagnostics-show-line-numbers -x c %s 2>&1 | FileCheck %s -strict-whitespace
|
|
|
|
// This file intentionally uses a CRLF newline style
|
|
// CHECK: warning: unused label 'ddd'
|
|
// CHECK-NEXT: {{^ ddd:}}
|
|
// CHECK-NEXT: {{^ \^~~~$}}
|
|
// CHECK-NOT: {{^ ;}}
|
|
void f(void) {
|
|
ddd:
|
|
;
|
|
}
|