]> granicus.if.org Git - clang/commitdiff
Add an XFAIL test which compiles differently from a .ast.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 21 Sep 2009 05:16:43 +0000 (05:16 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 21 Sep 2009 05:16:43 +0000 (05:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82437 91177308-0d34-0410-b5e6-96231b3b80d8

test/Frontend/ast-main.c [new file with mode: 0644]

diff --git a/test/Frontend/ast-main.c b/test/Frontend/ast-main.c
new file mode 100644 (file)
index 0000000..a08eb6b
--- /dev/null
@@ -0,0 +1,9 @@
+// RUN: clang -emit-llvm -S -o %t1.ll %s &&
+// RUN: clang -emit-ast -o %t.ast %s &&
+// RUN: clang -emit-llvm -S -o %t2.ll %t.ast &&
+// RUN: diff %t1.ll %t2.ll
+// XFAIL: *
+
+int main() {
+  return 0;
+}