forked from OSchip/llvm-project
Add test case for __ASSEMBLER__ definition.
llvm-svn: 60363
This commit is contained in:
parent
1f3d7849a8
commit
0132cdc45c
|
@ -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)
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
// RUN: clang -E %s &&
|
||||
// RUN: not clang -x c -E %s
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
#error "__ASSEMBLER__ not defined"
|
||||
#endif
|
Loading…
Reference in New Issue