| 1 |
// RUN: clang-format %s --Wno-error=unknown --style="{UnknownKey: true}" 2>&1 | FileCheck %s -check-prefix=CHECK |
| 2 |
// RUN: not clang-format %s --style="{UnknownKey: true}" 2>&1 | FileCheck %s -check-prefix=CHECK-FAIL |
| 3 |
|
| 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 |
|
| 11 |
int i ; |