From: Bill Wendling Date: Wed, 12 Aug 2009 01:47:51 +0000 (+0000) Subject: Testcase for r78770. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c98c68777f678c4d34d4b9e46b26b02910734963;p=oota-llvm.git Testcase for r78770. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78774 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 +};