[llvm-commits] [dragonegg] r158266 - in /dragonegg/trunk: Makefile test/validator/c/2012-06-05-Alloca.c

Duncan Sands baldrick at free.fr
Sat Jun 9 04:29:53 PDT 2012


Author: baldrick
Date: Sat Jun  9 06:29:53 2012
New Revision: 158266

URL: http://llvm.org/viewvc/llvm-project?rev=158266&view=rev
Log:
Make it possible to XFAIL tests for specific GCC versions.  Add a gcc-4.7
and later specific test (for commit 158006).

Added:
    dragonegg/trunk/test/validator/c/2012-06-05-Alloca.c
Modified:
    dragonegg/trunk/Makefile

Modified: dragonegg/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Makefile?rev=158266&r1=158265&r2=158266&view=diff
==============================================================================
--- dragonegg/trunk/Makefile (original)
+++ dragonegg/trunk/Makefile Sat Jun  9 06:29:53 2012
@@ -124,7 +124,7 @@
 	$(QUIET)echo s=@GCC@=$(GCC)=g >> lit.tmp
 	$(QUIET)echo s=@GCC_LANGUAGES@=$(GCC_LANGUAGES)=g >> lit.tmp
 	$(QUIET)echo s=@LLVM_TOOLS_DIR@=$(LLVM_TOOLS_DIR)=g >> lit.tmp
-	$(QUIET)echo s=@TARGET_TRIPLE@=$(TARGET_TRIPLE)=g >> lit.tmp
+	$(QUIET)echo s=@TARGET_TRIPLE@=$(TARGET_TRIPLE)-gcc-$(GCC_MAJOR).$(GCC_MINOR)=g >> lit.tmp
 	$(QUIET)echo s=@TEST_OUTPUT_DIR@=$(CURDIR)/test/Output=g >> lit.tmp
 	$(QUIET)sed -f lit.tmp $< > $@
 	$(QUIET)-rm -f lit.tmp

Added: dragonegg/trunk/test/validator/c/2012-06-05-Alloca.c
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c/2012-06-05-Alloca.c?rev=158266&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c/2012-06-05-Alloca.c (added)
+++ dragonegg/trunk/test/validator/c/2012-06-05-Alloca.c Sat Jun  9 06:29:53 2012
@@ -0,0 +1,12 @@
+// RUN: %dragonegg -S %s -o - | FileCheck %s
+// PR13025
+// XFAIL: gcc-4.5, gcc-4.6
+
+void use(int*);
+
+void foo(int n, int i) {
+// CHECK: foo
+  int a[n];
+// CHECK: alloca i8, i64 {{.*}}, align 4
+  use(&a[i]);
+}





More information about the llvm-commits mailing list