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