From: Daniel Dunbar Date: Mon, 1 Dec 2008 19:23:47 +0000 (+0000) Subject: Add test case for __ASSEMBLER__ definition. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bea06ad9e1e73937870e070197cb48e0c2eea87;p=clang Add test case for __ASSEMBLER__ definition. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60363 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Makefile b/test/Makefile index 5ef0e02402..81a1d790fc 100644 --- a/test/Makefile +++ b/test/Makefile @@ -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) diff --git a/test/Preprocessor/assembler-with-cpp.S b/test/Preprocessor/assembler-with-cpp.S new file mode 100644 index 0000000000..2c2bd8df97 --- /dev/null +++ b/test/Preprocessor/assembler-with-cpp.S @@ -0,0 +1,6 @@ +// RUN: clang -E %s && +// RUN: not clang -x c -E %s + +#ifndef __ASSEMBLER__ +#error "__ASSEMBLER__ not defined" +#endif