Daniel Dunbar | 5915fbf | 2009-09-01 16:57:46 +0000 | [diff] [blame^] | 1 | // RUN: clang -ccc-host-triple i386-unknown-unknown -ccc-print-phases -emit-ast %s 2> %t && |
| 2 | // RUN: FileCheck -check-prefix EMIT-AST-PHASES -input-file %t %s && |
| 3 | |
| 4 | // EMIT-AST-PHASES: 0: input, |
| 5 | // EMIT-AST-PHASES: , c |
| 6 | // EMIT-AST-PHASES: 1: preprocessor, {0}, cpp-output |
| 7 | // EMIT-AST-PHASES: 2: compiler, {1}, ast |
| 8 | // EMIT-AST-PHASES-NOT: 3: |
| 9 | |
| 10 | // RUN: touch %t.ast && |
| 11 | // RUN: clang -ccc-host-triple i386-unknown-unknown -ccc-print-phases -c %t.ast 2> %t && |
| 12 | // RUN: FileCheck -check-prefix COMPILE-AST-PHASES -input-file %t %s |
| 13 | |
| 14 | // COMPILE-AST-PHASES: 0: input, |
| 15 | // COMPILE-AST-PHASES: , ast |
| 16 | // COMPILE-AST-PHASES: 1: compiler, {0}, assembler |
| 17 | // COMPILE-AST-PHASES: 2: assembler, {1}, object |
| 18 | // COMPILE-AST-PHASES-NOT: 3: |
| 19 | |
| 20 | // FIXME: There is a problem with compiling AST's in that the input language is |
| 21 | // not availabe for use by other tools (for example, to automatically add |
| 22 | // -lstdc++). We may need -x [objective-]c++-ast and all that goodness. :( |