1 | // Test that we parse and translate the -O option correctly. |
---|---|
2 | |
3 | // RUN: %clang -O -### %s 2>&1 | FileCheck -check-prefix=CHECK-O %s |
4 | // CHECK-O: -O2 |
5 | |
6 | // RUN: %clang -O0 -### %s 2>&1 | FileCheck -check-prefix=CHECK-O0 %s |
7 | // CHECK-O0: -O0 |
8 | |
9 | // RUN: %clang -O1 -### %s 2>&1 | FileCheck -check-prefix=CHECK-O1 %s |
10 | // CHECK-O1: -O1 |
11 |