+++ /dev/null
-// RUN: %llvmgcc -xc++ -S -o - %s | not grep weak
-// The template should compile to linkonce linkage, not weak linkage.
-
-template<class T>
-void thefunc();
-
-template<class T>
-inline void thefunc() {}
-
-void test() {
- thefunc<int>();
-}
-
+++ /dev/null
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-struct Gfx {
- void opMoveSetShowText();
-};
-
-struct Operator {
- void (Gfx::*func)();
-};
-
-Operator opTab[] = {
- {&Gfx::opMoveSetShowText},
-};
-
+++ /dev/null
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-#include <vector>
-std::vector<int> my_method ();
-
-int
-main ()
-{
- my_method ();
- return 0;
-}
-
+++ /dev/null
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-
-struct CallSite {
- int X;
-
- CallSite(const CallSite &CS);
-};
-
-struct AliasAnalysis {
- int TD;
-
- virtual int getModRefInfo(CallSite CS);
-};
-
-
-struct Pass {
- int X;
- virtual int foo();
-};
-
-struct AliasAnalysisCounter : public Pass, public AliasAnalysis {
- int getModRefInfo(CallSite CS) {
- return 0;
- }
-};
-
-AliasAnalysisCounter AAC;
+++ /dev/null
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-
-void doesntThrow() throw();
-struct F {
- ~F() { doesntThrow(); }
-};
-
-void atest() {
- F A;
-lab:
- F B;
- goto lab;
-}
-
-void test(int val) {
-label: {
- F A;
- F B;
- if (val == 0) goto label;
- if (val == 1) goto label;
-}
-}
-
-void test3(int val) {
-label: {
- F A;
- F B;
- if (val == 0) { doesntThrow(); goto label; }
- if (val == 1) { doesntThrow(); goto label; }
-}
-}
-
-void test4(int val) {
-label: {
- F A;
- F B;
- if (val == 0) { F C; goto label; }
- if (val == 1) { F D; goto label; }
-}
-}
+++ /dev/null
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-struct Evil {
- void fun ();
-};
-int foo();
-typedef void (Evil::*memfunptr) ();
-static memfunptr jumpTable[] = { &Evil::fun };
-
-void Evil::fun() {
- (this->*jumpTable[foo()]) ();
-}
+++ /dev/null
-// RUN: %llvmgcc -xc++ -S -o - %s | not grep { constant }
-
-extern int X;
-const int Y = X;
-const int* foo() { return &Y; }
-
+++ /dev/null
-load_lib llvm.exp
-
-if [ llvm_gcc_supports c++ ] then {
- RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
-}