brintos

brintos / llvm-project-archived public Read only

0
0
Text · 486 B · 9f73a9e Raw
12 lines · cpp
1// RUN: clang-format %s --Wno-error=unknown --style="{UnknownKey: true}" 2>&1 | FileCheck %s -check-prefix=CHECK2// RUN: not clang-format %s --style="{UnknownKey: true}" 2>&1 | FileCheck %s -check-prefix=CHECK-FAIL3 4// CHECK: <command-line>:1:2: warning: unknown key 'UnknownKey'5// CHECK-NEXT: {UnknownKey: true}6// CHECK-NEXT: ^~~~~~~~~~7// CHECK-FAIL: <command-line>:1:2: error: unknown key 'UnknownKey'8// CHECK-FAIL-NEXT: {UnknownKey: true}9// CHECK-FAIL-NEXT: ^~~~~~~~~~10 11int i ;12