From d3051ef17fafc4364e3b0043626417195f2866fa Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 12 Aug 2009 01:47:51 +0000 Subject: [PATCH] Testcase for r78770. llvm-svn: 78774 --- test/FrontendC++/2009-08-11-VectorRetTy.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/FrontendC++/2009-08-11-VectorRetTy.cpp diff --git a/test/FrontendC++/2009-08-11-VectorRetTy.cpp b/test/FrontendC++/2009-08-11-VectorRetTy.cpp new file mode 100644 index 00000000000..b2c3ba185b5 --- /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 +};