From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/Driver/emit-llvm.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 clang/test/Driver/emit-llvm.c (limited to 'clang/test/Driver/emit-llvm.c') diff --git a/clang/test/Driver/emit-llvm.c b/clang/test/Driver/emit-llvm.c new file mode 100644 index 0000000..76ea059 --- /dev/null +++ b/clang/test/Driver/emit-llvm.c @@ -0,0 +1,10 @@ +// Check that -O4 is only honored as the effective -O option. +// clang/loader problem + +// RUN: %clang -ccc-print-phases -c -O4 -O0 %s 2> %t +// RUN: FileCheck --check-prefix=O4_AND_O0 %s < %t + +// O4_AND_O0: 0: input, "{{.*}}", c +// O4_AND_O0: 1: preprocessor, {0}, cpp-output +// O4_AND_O0: 2: compiler, {1}, assembler +// O4_AND_O0: 3: assembler, {2}, object -- cgit v1.2.3