Author: ddunbar
Date: Mon Dec 1 13:23:47 2008
New Revision: 60363
URL: http://llvm.org/viewvc/llvm-project?rev=60363&view=rev
Log:
Add test case for __ASSEMBLER__ definition.
Added:
cfe/trunk/test/Preprocessor/assembler-with-cpp.S
Modified:
cfe/trunk/test/Makefile
cfe/trunk/test/Preprocessor/ (props changed)
Modified: cfe/trunk/test/Makefile
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Makefile?rev=60363&r1=60362&r2=60363&view=diff
==============================================================================
--- cfe/trunk/test/Makefile (original)
+++ cfe/trunk/test/Makefile Mon Dec 1 13:23:47 2008
@@ -19,7 +19,7 @@
DONE = echo
endif
-TESTS := $(addprefix Output/, $(addsuffix .testresults, $(shell find
$(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' -or -name '*.mm'
\) | grep -v "Output/")))
+TESTS := $(addprefix Output/, $(addsuffix .testresults, $(shell find
$(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' -or -name '*.mm'
-or -name '*.S' \) | grep -v "Output/")))
Output/%.testresults: %
@ $(PROGRESS)
@ PATH=$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$$PATH VG=$(VG)
$(PROJ_SRC_DIR)/TestRunner.sh $< > $@ || $(REPORTFAIL)
Propchange: cfe/trunk/test/Preprocessor/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Dec 1 13:23:47 2008
@@ -0,0 +1 @@
+Output
Added: cfe/trunk/test/Preprocessor/assembler-with-cpp.S
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/assembler-with-cpp.S?rev=60363&view=auto
==============================================================================
--- cfe/trunk/test/Preprocessor/assembler-with-cpp.S (added)
+++ cfe/trunk/test/Preprocessor/assembler-with-cpp.S Mon Dec 1 13:23:47 2008
@@ -0,0 +1,6 @@
+// RUN: clang -E %s &&
+// RUN: not clang -x c -E %s
+
+#ifndef __ASSEMBLER__
+#error "__ASSEMBLER__ not defined"
+#endif
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits