aboutsummaryrefslogtreecommitdiff
path: root/test/Headers
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-31 18:17:07 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-31 18:17:07 +0000
commit60c158a5e5827ed030b7cf8885f099cded563a6f (patch)
treed40e4aa5576af03f23ff6b3dfc88140d01d36d46 /test/Headers
parent5d1ae382828df91deb94fa343fb331b5548f06a2 (diff)
Add "static" to some functions in altivec.c where it was missing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Headers')
-rw-r--r--test/Headers/altivec-header.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Headers/altivec-header.c b/test/Headers/altivec-header.c
new file mode 100644
index 0000000000..9828924eca
--- /dev/null
+++ b/test/Headers/altivec-header.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -maltivec -ffreestanding -S -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -maltivec -ffreestanding -fno-lax-vector-conversions -S -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -maltivec -ffreestanding -x c++ -S -o - %s | FileCheck %s
+
+#include <altivec.h>
+
+// Verify that simply including <altivec.h> does not generate any code
+// (i.e. all inline routines in the header are marked "static")
+
+// CHECK-NOT: .text
+