1 | // RUN: %clangxx -O0 %s -o %t |
2 | // RUN: %env_tool_opts=invalid_option_name=10,verbosity=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-V1 |
3 | // RUN: %env_tool_opts=invalid_option_name=10 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-V0 |
4 | |
5 | #include <stdio.h> |
6 | |
7 | int main() { |
8 | fprintf(stderr, format: "done\n" ); |
9 | } |
10 | |
11 | // CHECK-V1: WARNING: found 1 unrecognized |
12 | // CHECK-V1: invalid_option_name |
13 | // CHECK-V0-NOT: WARNING: found 1 unrecognized |
14 | // CHECK-V0-NOT: invalid_option_name |
15 | // CHECK: done |
16 | |