Add test case for __ASSEMBLER__ definition.

llvm-svn: 60363
This commit is contained in:
Daniel Dunbar 2008-12-01 19:23:47 +00:00
parent 1f3d7849a8
commit 0132cdc45c
2 changed files with 7 additions and 1 deletions

View File

@ -19,7 +19,7 @@ REPORTFAIL = (echo; echo '----' $< 'failed ----')
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)

View File

@ -0,0 +1,6 @@
// RUN: clang -E %s &&
// RUN: not clang -x c -E %s
#ifndef __ASSEMBLER__
#error "__ASSEMBLER__ not defined"
#endif