From 36c49e3f258dced101949edabd72e9bc3f1dedc4 Mon Sep 17 00:00:00 2001 From: dim <dim@FreeBSD.org> Date: Fri, 17 Sep 2010 15:54:40 +0000 Subject: Vendor import of clang r114020 (from the release_28 branch): http://llvm.org/svn/llvm-project/cfe/branches/release_28@114020 Approved by: rpaulo (mentor) --- test/PCH/preamble.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/PCH/preamble.c (limited to 'test/PCH/preamble.c') diff --git a/test/PCH/preamble.c b/test/PCH/preamble.c new file mode 100644 index 0000000..bdc0aea --- /dev/null +++ b/test/PCH/preamble.c @@ -0,0 +1,21 @@ +// Check that using the preamble option actually skips the preamble. + +// RUN: %clang_cc1 -emit-pch -o %t %S/Inputs/preamble.h +// RUN: %clang_cc1 -include-pch %t -preamble-bytes=278,1 -DFOO=f -verify %s + +float f(int); // Not an error, because we skip this via the preamble! + + + + + + + + + + + + +int g(int x) { + return FOO(x); +} -- cgit v1.1