From b90e92ea9faddaa9990fe1228a85e135a7827489 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 12 Aug 2009 01:47:51 +0000 Subject: Testcase for r78770. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78774 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC++/2009-08-11-VectorRetTy.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/FrontendC++/2009-08-11-VectorRetTy.cpp (limited to 'test') diff --git a/test/FrontendC++/2009-08-11-VectorRetTy.cpp b/test/FrontendC++/2009-08-11-VectorRetTy.cpp new file mode 100644 index 0000000..b2c3ba1 --- /dev/null +++ b/test/FrontendC++/2009-08-11-VectorRetTy.cpp @@ -0,0 +1,13 @@ +// RUN: %llvmgxx %s -c -o /dev/null +// +typedef void (*Func) (); +typedef long long m64 __attribute__((__vector_size__(8), __may_alias__)); +static inline m64 __attribute__((__always_inline__, __nodebug__)) _mm_set1_pi16() {} +template +static void Bork() { + const m64 mmx_0x00ff = _mm_set1_pi16(); +} +struct A {}; +Func arr[] = { + Bork +}; -- cgit v1.1