blob: a7dedc860cfce1e394a2334f860107642f20cb8d [file] [log] [blame]
Hans Wennborga203b502013-08-01 16:21:57 +00001// 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