forked from OSchip/llvm-project
parent
b52ebc3e29
commit
772aa6c82e
|
@ -1,10 +0,0 @@
|
|||
// RUN: %llvmgxx -S %s -o /dev/null -g
|
||||
// This crashes if we try to emit debug info for TEMPLATE_DECL members.
|
||||
template <class T> class K2PtrVectorBase {};
|
||||
template <class T> class K2Vector {};
|
||||
template <class U > class K2Vector<U*> : public K2PtrVectorBase<U*> {};
|
||||
class ScriptInfoManager {
|
||||
void PostRegister() ;
|
||||
template <class SI> short ReplaceExistingElement(K2Vector<SI*>& v);
|
||||
};
|
||||
void ScriptInfoManager::PostRegister() {}
|
|
@ -1,32 +0,0 @@
|
|||
// RUN: %llvmgxx -S -m32 %s -o - | grep baz | grep global | grep {struct.bar}
|
||||
// RUN: %llvmgxx -S -m32 %s -o - | grep ccc | grep global | grep {struct.CC}
|
||||
// RUN: %llvmgxx -S -m32 %s -o - | grep quux | grep global | grep {struct.bar}
|
||||
// RUN: %llvmgxx -S -m32 %s -o - | grep foo | grep global | grep {struct.SRCFilter::FilterEntry}
|
||||
// RUN: %llvmgxx -S -m32 %s -o - | grep {struct.bar} | grep {1 x i32}
|
||||
// RUN: %llvmgxx -S -m32 %s -o - | grep {struct.CC} | grep {struct.payre<KBFP,float*} | grep {.base.32} | grep {1 x i32}
|
||||
// RUN: %llvmgxx -S -m32 %s -o - | grep {struct.SRCFilter::FilterEntry} | not grep {1 x i32}
|
||||
// XFAIL: *
|
||||
// XTARGET: powerpc-apple-darwin
|
||||
|
||||
template<class _T1, class _T2> struct payre {
|
||||
_T1 first;
|
||||
_T2 second;
|
||||
payre() : first(), second() { }
|
||||
};
|
||||
struct KBFP {
|
||||
double mCutoffFrequency;
|
||||
};
|
||||
class SRCFilter {
|
||||
struct FilterEntry: public payre<KBFP, float*>{};
|
||||
static FilterEntry foo;
|
||||
};
|
||||
SRCFilter::FilterEntry SRCFilter::foo; // 12 bytes
|
||||
payre<KBFP, float*> baz; // 16 bytes
|
||||
class CC { // 16 bytes
|
||||
public: payre<KBFP, float*> x;
|
||||
};
|
||||
class CC ccc;
|
||||
|
||||
struct bar { KBFP x; float* y;}; // 16 bytes
|
||||
struct bar quux;
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
// Insure __block_holder_tmp is allocated on the stack. Darwin only.
|
||||
// RUN: %llvmgxx %s -S -O2 -o - | egrep {__block_holder_tmp.*alloca}
|
||||
// XFAIL: *
|
||||
// XTARGET: darwin
|
||||
// <rdar://problem/5865221>
|
||||
// END.
|
||||
extern void fubar_dispatch_sync(void (^PP)(void));
|
||||
void fubar() {
|
||||
__block void *voodoo;
|
||||
fubar_dispatch_sync(^(void){voodoo=0;});
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
// RUN: %llvmgxx %s -S
|
||||
// XFAIL: darwin
|
||||
|
||||
#include <set>
|
||||
|
||||
class A {
|
||||
public:
|
||||
A();
|
||||
private:
|
||||
A(const A&);
|
||||
};
|
||||
void B()
|
||||
{
|
||||
std::set<void *, A> foo;
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
// RUN: %llvmgxx %s -S -o /dev/null
|
||||
|
||||
namespace A {
|
||||
typedef int B;
|
||||
}
|
||||
struct B {
|
||||
};
|
||||
using ::A::B;
|
|
@ -1,12 +0,0 @@
|
|||
// RUN: %llvmgxx -S %s -o -
|
||||
// rdar://7114564
|
||||
struct A {
|
||||
unsigned long long : (sizeof(unsigned long long) * 8) - 16;
|
||||
};
|
||||
struct B {
|
||||
A a;
|
||||
};
|
||||
struct B b = {
|
||||
{}
|
||||
};
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
// RUN: %llvmgxx %s -S -o /dev/null
|
||||
// <rdar://problem/7096460>
|
||||
typedef void (*Func) ();
|
||||
typedef long long m64 __attribute__((__vector_size__(8), __may_alias__));
|
||||
static inline m64 __attribute__((__always_inline__, __nodebug__)) _mm_set1_pi16() {}
|
||||
template <class MM>
|
||||
static void Bork() {
|
||||
const m64 mmx_0x00ff = _mm_set1_pi16();
|
||||
}
|
||||
struct A {};
|
||||
Func arr[] = {
|
||||
Bork<A>
|
||||
};
|
Loading…
Reference in New Issue