| Hans Wennborg | a203b50 | 2013-08-01 16:21:57 +0000 | [diff] [blame] | 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 | ||||