[llvm-commits] [dragonegg] r153191 - in /dragonegg/trunk/test: compilator/ compilator/local/ compilator/local/c++/ validator/c++/

Duncan Sands baldrick at free.fr
Wed Mar 21 09:02:36 PDT 2012


Author: baldrick
Date: Wed Mar 21 11:02:34 2012
New Revision: 153191

URL: http://llvm.org/viewvc/llvm-project?rev=153191&view=rev
Log:
Move additional tests that were (probably) just checking if the compiler was
crashing to the compilator suite.  Modernize some of the rest.  Have compilator
also run on everything in the validator suite by adding a suitable symlink.  As
this makes it pointless to have copies of validator tests also in compilator,
zap the duplicates.

Added:
    dragonegg/trunk/test/compilator/local/c++/2003-11-18-PtrMemConstantInitializer.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2003-11-18-PtrMemConstantInitializer.cpp
    dragonegg/trunk/test/compilator/local/c++/2003-11-25-ReturningOpaqueByValue.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2003-11-25-ReturningOpaqueByValue.cpp
    dragonegg/trunk/test/compilator/local/c++/2003-11-27-MultipleInheritanceThunk.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2003-11-27-MultipleInheritanceThunk.cpp
    dragonegg/trunk/test/compilator/local/c++/2003-11-29-DuplicatedCleanupTest.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2003-11-29-DuplicatedCleanupTest.cpp
    dragonegg/trunk/test/compilator/local/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp
    dragonegg/trunk/test/compilator/local/c++/2004-03-08-ReinterpretCastCopy.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2004-03-08-ReinterpretCastCopy.cpp
    dragonegg/trunk/test/compilator/local/c++/2004-03-15-CleanupsAndGotos.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2004-03-15-CleanupsAndGotos.cpp
    dragonegg/trunk/test/compilator/local/c++/2004-06-08-LateTemplateInstantiation.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2004-06-08-LateTemplateInstantiation.cpp
    dragonegg/trunk/test/compilator/local/c++/2004-09-27-CompilerCrash.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2004-09-27-CompilerCrash.cpp
    dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFields-1.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFields-1.cpp
    dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp
    dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap.cpp
    dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsSmall.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsSmall.cpp
    dragonegg/trunk/test/compilator/local/c++/2007-04-05-StructPackedFieldUnpacked.cpp
      - copied, changed from r153088, dragonegg/trunk/test/validator/c++/2007-04-05-StructPackedFieldUnpacked.cpp
    dragonegg/trunk/test/compilator/validator-uplink   (with props)
Removed:
    dragonegg/trunk/test/compilator/local/2004-11-27-EmitsUnusedInlineFunctions.cpp
    dragonegg/trunk/test/compilator/local/2005-07-21-VirtualBaseAccess.cpp
    dragonegg/trunk/test/compilator/local/2007-01-06-ELF-Thunk-Sections.cpp
    dragonegg/trunk/test/compilator/local/2007-03-27-FunctionVarRename.cpp
    dragonegg/trunk/test/compilator/local/2007-04-11-InlineStorageClassC++.cpp
    dragonegg/trunk/test/compilator/local/2007-05-23-TryFinally.cpp
    dragonegg/trunk/test/compilator/local/2007-08-01-RestrictMethod.cpp
    dragonegg/trunk/test/compilator/local/2009-02-07-VolatileArrayRefHack.cpp
    dragonegg/trunk/test/compilator/local/2009-02-16-CtorNames-dbg.cpp
    dragonegg/trunk/test/compilator/local/2009-06-20-DarwinPPCLayout.cpp
    dragonegg/trunk/test/compilator/local/2009-06-30-ByrefBlock.cpp
    dragonegg/trunk/test/compilator/local/2010-03-22-empty-baseclass.cpp
    dragonegg/trunk/test/compilator/local/integration-O2.cpp
    dragonegg/trunk/test/compilator/local/ptr-to-method-devirt.cpp
    dragonegg/trunk/test/validator/c++/2003-11-18-PtrMemConstantInitializer.cpp
    dragonegg/trunk/test/validator/c++/2003-11-25-ReturningOpaqueByValue.cpp
    dragonegg/trunk/test/validator/c++/2003-11-27-MultipleInheritanceThunk.cpp
    dragonegg/trunk/test/validator/c++/2003-11-29-DuplicatedCleanupTest.cpp
    dragonegg/trunk/test/validator/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp
    dragonegg/trunk/test/validator/c++/2004-03-08-ReinterpretCastCopy.cpp
    dragonegg/trunk/test/validator/c++/2004-03-15-CleanupsAndGotos.cpp
    dragonegg/trunk/test/validator/c++/2004-06-08-LateTemplateInstantiation.cpp
    dragonegg/trunk/test/validator/c++/2004-09-27-CompilerCrash.cpp
    dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFields-1.cpp
    dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp
    dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap.cpp
    dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsSmall.cpp
    dragonegg/trunk/test/validator/c++/2007-04-05-StructPackedFieldUnpacked.cpp
Modified:
    dragonegg/trunk/test/compilator/dragonegg-lit.cfg
    dragonegg/trunk/test/validator/c++/2003-11-02-WeakLinkage.cpp
    dragonegg/trunk/test/validator/c++/2004-01-11-DynamicInitializedConstant.cpp
    dragonegg/trunk/test/validator/c++/2004-03-09-UnmangledBuiltinMethods.cpp
    dragonegg/trunk/test/validator/c++/2004-09-27-DidntEmitTemplate.cpp
    dragonegg/trunk/test/validator/c++/2004-11-27-EmitsUnusedInlineFunctions.cpp
    dragonegg/trunk/test/validator/c++/2005-01-03-StaticInitializers.cpp
    dragonegg/trunk/test/validator/c++/2005-02-13-BadDynamicInit.cpp
    dragonegg/trunk/test/validator/c++/2005-02-14-BitFieldOffset.cpp
    dragonegg/trunk/test/validator/c++/2005-07-21-VirtualBaseAccess.cpp
    dragonegg/trunk/test/validator/c++/2006-11-20-GlobalSymbols.cpp
    dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections.cpp
    dragonegg/trunk/test/validator/c++/2007-03-27-FunctionVarRename.cpp
    dragonegg/trunk/test/validator/c++/2007-07-29-RestrictPtrArg.cpp
    dragonegg/trunk/test/validator/c++/2007-07-29-RestrictRefArg.cpp
    dragonegg/trunk/test/validator/c++/2007-08-01-RestrictMethod.cpp
    dragonegg/trunk/test/validator/c++/2009-02-16-CtorNames-dbg.cpp
    dragonegg/trunk/test/validator/c++/weak-external.cpp
    dragonegg/trunk/test/validator/c++/x86-64-abi-sret-vs-2word-struct-param.cpp

Modified: dragonegg/trunk/test/compilator/dragonegg-lit.cfg
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/dragonegg-lit.cfg?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/compilator/dragonegg-lit.cfg (original)
+++ dragonegg/trunk/test/compilator/dragonegg-lit.cfg Wed Mar 21 11:02:34 2012
@@ -458,7 +458,7 @@
     'gcc-testsuite/go.test/test/fixedbugs/bug273.go', # Cache collision with decl_llvm
     'gcc-testsuite/go.test/test/fixedbugs/bug294.go', # Cache collision with decl_llvm
     'gcc-testsuite/go.test/test/interface/embed.go', # Cache collision with decl_llvm
-    'local/2004-11-27-InlineAsmFunctionRedefinition.cpp', # label emitted multiple times to assembly file
+    'local/c++/2004-11-27-InlineAsmFunctionRedefinition.cpp', # label emitted multiple times to assembly file
     'clang-testsuite/CodeGen/2003-10-29-AsmRename.c', # label emitted multiple times to assembly file
     'clang-testsuite/CodeGen/x86.c', # Impossible register constraint in asm not rejected
     'clang-testsuite/CodeGen/mmx-inline-asm.c', # Assertion "Only trivial scalar-to-vector conversions should get here!" failed

Removed: dragonegg/trunk/test/compilator/local/2004-11-27-EmitsUnusedInlineFunctions.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2004-11-27-EmitsUnusedInlineFunctions.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2004-11-27-EmitsUnusedInlineFunctions.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2004-11-27-EmitsUnusedInlineFunctions.cpp (removed)
@@ -1,7 +0,0 @@
-// The C++ front-end was emitting WAY too many inline functions.  This test
-// verifies that it does not emit the body of getchar, because it is not used.
-// This corresponds to PR459
-
-// RUN: %llvmgxx %s -S -o - | not grep {^i32 .getchar}
-
-#include <stdio.h>

Removed: dragonegg/trunk/test/compilator/local/2005-07-21-VirtualBaseAccess.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2005-07-21-VirtualBaseAccess.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2005-07-21-VirtualBaseAccess.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2005-07-21-VirtualBaseAccess.cpp (removed)
@@ -1,14 +0,0 @@
-// RUN: %llvmgxx -xc++ %s -S -o - | opt -die -S | not grep cast
-
-void foo(int*);
-
-struct FOO {
-  int X;
-};
-
-struct BAR : virtual FOO { BAR(); };
-
-int testfn() {
-  BAR B;
-  foo(&B.X);
-}

Removed: dragonegg/trunk/test/compilator/local/2007-01-06-ELF-Thunk-Sections.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2007-01-06-ELF-Thunk-Sections.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2007-01-06-ELF-Thunk-Sections.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2007-01-06-ELF-Thunk-Sections.cpp (removed)
@@ -1,49 +0,0 @@
-// RUN: %llvmgxx %s -S -o - | not grep gnu.linkonce.
-// PR1085
-
-class 
-__attribute__((visibility("default"))) QGenericArgument
-{
-	public:inline QGenericArgument(const char *aName = 0, const void *aData = 0):_data(aData), _name(aName) {
-	}
-	private:const void *_data;
-	const char     *_name;
-};
-struct __attribute__ ((
-		       visibility("default"))) QMetaObject
-{
-	struct {
-	}
-	                d;
-};
-class 
-__attribute__((visibility("default"))) QObject
-{
-	virtual const QMetaObject *metaObject() const;
-};
-class 
-__attribute__((visibility("default"))) QPaintDevice
-{
-	public:enum PaintDeviceMetric {
-		PdmWidth = 1, PdmHeight, PdmWidthMM, PdmHeightMM, PdmNumColors, PdmDepth, PdmDpiX, PdmDpiY, PdmPhysicalDpiX, PdmPhysicalDpiY
-	};
-	virtual ~ QPaintDevice();
-	union {
-	}
-	                ct;
-};
-class 
-__attribute__((visibility("default"))) QWidget:public QObject, public QPaintDevice
-{
-};
-class 
-__attribute__((visibility("default"))) QDialog:public QWidget
-{
-};
-class           TopicChooser:public QDialog {
-	virtual const QMetaObject *metaObject() const;
-};
-const QMetaObject *TopicChooser::
-metaObject() const
-{
-}

Removed: dragonegg/trunk/test/compilator/local/2007-03-27-FunctionVarRename.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2007-03-27-FunctionVarRename.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2007-03-27-FunctionVarRename.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2007-03-27-FunctionVarRename.cpp (removed)
@@ -1,17 +0,0 @@
-// RUN: %llvmgxx %s -S -o - | not grep eprintf1
-// RUN: %llvmgxx %s -S -o - | grep eprintf
-
-// Only one eprintf should exist in the output
-
-extern "C" 
-void __eprintf();
-
-void foo() {
-
-  __eprintf();
-}
-
-void *bar() {
-  extern void *__eprintf;
-  return &__eprintf;
-}

Removed: dragonegg/trunk/test/compilator/local/2007-04-11-InlineStorageClassC++.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2007-04-11-InlineStorageClassC%2B%2B.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2007-04-11-InlineStorageClassC++.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2007-04-11-InlineStorageClassC++.cpp (removed)
@@ -1,44 +0,0 @@
-// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
-// RUN:   grep xglobWeak | grep linkonce | count 1
-// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
-// RUN:   grep xextWeak | grep linkonce | count 1
-// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
-// RUN:   grep xWeaknoinline | grep weak | count 1
-// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
-// RUN:   grep xWeakextnoinline | grep weak | count 1
-// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
-// RUN:   grep xglobnoWeak | grep linkonce | count 1
-// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
-// RUN:   grep xstatnoWeak | grep internal | count 1
-// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
-// RUN:   grep xextnoWeak | grep linkonce | count 1
-inline int xglobWeak(int) __attribute__((weak));
-inline int xglobWeak (int i) {
-  return i*2;
-}
-inline int xextWeak(int) __attribute__((weak));
-extern  inline int xextWeak (int i) {
-  return i*4;
-}
-int xWeaknoinline(int) __attribute__((weak));
-int xWeaknoinline(int i) {
-  return i*8;
-}
-int xWeakextnoinline(int) __attribute__((weak));
-extern int xWeakextnoinline(int i) {
-  return i*16;
-}
-inline int xglobnoWeak (int i) {
-  return i*32;
-}
-static inline int xstatnoWeak (int i) {
-  return i*64;
-}
-extern  inline int xextnoWeak (int i) {
-  return i*128;
-}
-int j(int y) {
-  return xglobnoWeak(y)+xstatnoWeak(y)+xextnoWeak(y)+
-        xglobWeak(y)+xextWeak(y)+
-        xWeakextnoinline(y)+xWeaknoinline(y);
-}

Removed: dragonegg/trunk/test/compilator/local/2007-05-23-TryFinally.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2007-05-23-TryFinally.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2007-05-23-TryFinally.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2007-05-23-TryFinally.cpp (removed)
@@ -1,16 +0,0 @@
-// RUN: %llvmgxx %s -S -O2 -o - | ignore grep _Unwind_Resume | \
-// RUN:   wc -l | grep {\[23\]}
-
-struct One { };
-struct Two { };
-
-void handle_unexpected () {
-  try
-  {
-    throw;
-  }
-  catch (One &)
-  {
-    throw Two ();
-  }
-}

Removed: dragonegg/trunk/test/compilator/local/2007-08-01-RestrictMethod.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2007-08-01-RestrictMethod.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2007-08-01-RestrictMethod.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2007-08-01-RestrictMethod.cpp (removed)
@@ -1,13 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | grep noalias
-
-
-class foo {
-  int member[4];
-  
-  void bar(int * a);
-  
-};
-
-void foo::bar(int * a) __restrict {
-  member[3] = *a;
-}

Removed: dragonegg/trunk/test/compilator/local/2009-02-07-VolatileArrayRefHack.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2009-02-07-VolatileArrayRefHack.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2009-02-07-VolatileArrayRefHack.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2009-02-07-VolatileArrayRefHack.cpp (removed)
@@ -1,7 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | grep {volatile load}
-// PR3320
-
-void test(volatile int *a) {
-    // should be a volatile load.
-    a[0];
-}

Removed: dragonegg/trunk/test/compilator/local/2009-02-16-CtorNames-dbg.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2009-02-16-CtorNames-dbg.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2009-02-16-CtorNames-dbg.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2009-02-16-CtorNames-dbg.cpp (removed)
@@ -1,10 +0,0 @@
-// RUN: %llvmgcc -S -g %s -o - | grep "\~A"
-class A {
-  int i;
-public:
-  A() { i = 0; }
- ~A() { i = 42; }
-};
-
-A a;
-

Removed: dragonegg/trunk/test/compilator/local/2009-06-20-DarwinPPCLayout.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2009-06-20-DarwinPPCLayout.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2009-06-20-DarwinPPCLayout.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2009-06-20-DarwinPPCLayout.cpp (removed)
@@ -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;
-

Removed: dragonegg/trunk/test/compilator/local/2009-06-30-ByrefBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2009-06-30-ByrefBlock.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2009-06-30-ByrefBlock.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2009-06-30-ByrefBlock.cpp (removed)
@@ -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;});
-}

Removed: dragonegg/trunk/test/compilator/local/2010-03-22-empty-baseclass.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2010-03-22-empty-baseclass.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/2010-03-22-empty-baseclass.cpp (original)
+++ dragonegg/trunk/test/compilator/local/2010-03-22-empty-baseclass.cpp (removed)
@@ -1,134 +0,0 @@
-// RUN: %llvmgxx -S %s -o - -O2 | FileCheck %s
-namespace boost {
-  namespace detail {
-    template <typename T> struct cv_traits_imp {};
-    template <typename T> struct cv_traits_imp<T*> {typedef T unqualified_type;};
-  }
-}
-namespace mpl_ {}
-namespace boost {
-  namespace mpl {using namespace mpl_;}
-  template< typename T > struct remove_cv {typedef typename boost::detail::cv_traits_imp<T*>::unqualified_type type;};
-  namespace type_traits {
-    typedef char yes_type;
-    struct no_type {char padding[8];};
-  }
-}
-namespace mpl_ {
-  template< bool C_ > struct bool_;
-  typedef bool_<true> true_;
-  typedef bool_<false> false_;
-  template< bool C_ > struct bool_ {static const bool value = C_;};
-  template< typename T, T N > struct integral_c;
-}
-namespace boost{
-  template <class T, T val>   struct integral_constant :
-    public mpl::integral_c<T, val> {};
-  template<> struct integral_constant<bool,true> : public mpl::true_ {};
-  template<> struct integral_constant<bool,false> : public mpl::false_ {};
-  namespace type_traits {
-    template <bool b1, bool b2, bool b3 = false, bool b4 = false,
-              bool b5 = false, bool b6 = false, bool b7 = false> struct ice_or;
-    template <bool b1, bool b2, bool b3, bool b4, bool b5, bool b6, bool b7>
-    struct ice_or {static const bool value = true; };
-    template <> struct ice_or<false, false, false, false, false, false, false>
-    {static const bool value = false;};
-    template <bool b1, bool b2, bool b3 = true, bool b4 = true, bool b5 = true,
-              bool b6 = true, bool b7 = true> struct ice_and;
-    template <bool b1, bool b2, bool b3, bool b4, bool b5, bool b6, bool b7>
-    struct ice_and {static const bool value = false;};
-    template <> struct ice_and<true, true, true, true, true, true, true>
-    {static const bool value = true;};
-    template <bool b> struct ice_not {static const bool value = true;};
-  };
-  namespace detail {
-    template <typename T> struct is_union_impl {static const bool value = false;};
-  }
-  template< typename T > struct is_union :
-  ::boost::integral_constant<bool, ::boost::detail::is_union_impl<T>::value> {};
-  namespace detail {
-    template <class U> ::boost::type_traits::yes_type is_class_tester(void(U::*)(void));
-    template <class U> ::boost::type_traits::no_type is_class_tester(...);
-    template <typename T> struct is_class_impl {
-      static const bool value = (::boost::type_traits::ice_and< sizeof(is_class_tester<T>(0))
-                                 == sizeof(::boost::type_traits::yes_type),
-                                 ::boost::type_traits::ice_not< ::boost::is_union<T>::value >::value >::value);};
-}
-  template<typename T> struct is_class:
-  ::boost::integral_constant<bool,::boost::detail::is_class_impl<T>::value> {  };
-namespace detail {
-  template <typename T> struct empty_helper_t1: public T {int i[256];};
-  struct empty_helper_t2 {int i[256];};
-  template <typename T, bool is_a_class = false> struct empty_helper
-  {static const bool value = false;};
-  template <typename T> struct empty_helper<T, true>
-  {static const bool value = (sizeof(empty_helper_t1<T>) == sizeof(empty_helper_t2));};
-  template <typename T> struct is_empty_impl {
-    typedef typename remove_cv<T>::type cvt;
-    static const bool value = (::boost::type_traits::ice_or< ::boost::detail::empty_helper
-                               <cvt,::boost::is_class<T>::value>::value, false>::value);
-  };
-}
-template<typename T> struct is_empty:
-::boost::integral_constant<bool,::boost::detail::is_empty_impl<T>::value> {};
-template<typename T, typename U > struct is_same:
-::boost::integral_constant<bool,false> {};
-template<typename T> struct call_traits {typedef T& reference;};
-namespace details {
-  template <class T1, class T2, bool IsSame, bool FirstEmpty, bool SecondEmpty>
-  struct compressed_pair_switch;
-  template <class T1, class T2>
-  struct compressed_pair_switch<T1, T2, false, true, false>
-  {static const int value = 1;};
-  template <class T1, class T2, int Version> class compressed_pair_imp;
-  template <class T1, class T2> class compressed_pair_imp<T1, T2, 1>:
-  protected ::boost::remove_cv<T1>::type {
-  public:
-    typedef T1 first_type;
-    typedef T2 second_type;
-    typedef typename call_traits<first_type>::reference first_reference;
-    typedef typename call_traits<second_type>::reference second_reference;
-    first_reference first() {return *this;}
-    second_reference second() {return second_;}
-    second_type second_;
-  };
-}
-template <class T1, class T2> class compressed_pair:
-  private ::boost::details::compressed_pair_imp<T1, T2, ::boost::details::compressed_pair_switch<
-                                                          T1, T2, ::boost::is_same<typename remove_cv<T1>::type,
-                                                                                   typename remove_cv<T2>::type>::value,
-                                                          ::boost::is_empty<T1>::value, ::boost::is_empty<T2>::value>::value>
-  {
-  private:
-    typedef details::compressed_pair_imp<T1, T2, ::boost::details::compressed_pair_switch<
-                                                   T1, T2, ::boost::is_same<typename remove_cv<T1>::type,
-                                                                            typename remove_cv<T2>::type>::value,
-                                                                              ::boost::is_empty<T1>::value, ::boost::is_empty<T2>::value>::value> base;
-  public:
-    typedef T1 first_type;
-    typedef T2 second_type;
-    typedef typename call_traits<first_type>::reference first_reference;
-    typedef typename call_traits<second_type>::reference second_reference;
-    first_reference first() {return base::first();}
-    second_reference second() {return base::second();}
-  };
-}
-struct empty_base_t {};
-struct empty_t : empty_base_t {};
-typedef boost::compressed_pair<empty_t, int> data_t;
-extern "C" {int printf(const char * , ...);}
-extern "C" {void abort(void);}
-int main (int argc, char * const argv[]) {
-  data_t x;
-  x.second() = -3;
-  // This store should be elided:
-  x.first() = empty_t();
-  // If x.second() has been clobbered by the elided store, fail.
-  if (x.second() != -3) {
-    printf("x.second() was clobbered\n");
-    // CHECK-NOT: x.second() was clobbered
-    abort();
-  }
-  return 0;
-}
-// CHECK: ret i32

Copied: dragonegg/trunk/test/compilator/local/c++/2003-11-18-PtrMemConstantInitializer.cpp (from r153088, dragonegg/trunk/test/validator/c++/2003-11-18-PtrMemConstantInitializer.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2003-11-18-PtrMemConstantInitializer.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2003-11-18-PtrMemConstantInitializer.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2003-11-18-PtrMemConstantInitializer.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2003-11-18-PtrMemConstantInitializer.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2003-11-18-PtrMemConstantInitializer.cpp Wed Mar 21 11:02:34 2012
@@ -1,5 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
 struct Gfx {
   void opMoveSetShowText();
 };

Copied: dragonegg/trunk/test/compilator/local/c++/2003-11-25-ReturningOpaqueByValue.cpp (from r153088, dragonegg/trunk/test/validator/c++/2003-11-25-ReturningOpaqueByValue.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2003-11-25-ReturningOpaqueByValue.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2003-11-25-ReturningOpaqueByValue.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2003-11-25-ReturningOpaqueByValue.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2003-11-25-ReturningOpaqueByValue.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2003-11-25-ReturningOpaqueByValue.cpp Wed Mar 21 11:02:34 2012
@@ -1,5 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
 #include <vector>
 std::vector<int> my_method ();
 

Copied: dragonegg/trunk/test/compilator/local/c++/2003-11-27-MultipleInheritanceThunk.cpp (from r153088, dragonegg/trunk/test/validator/c++/2003-11-27-MultipleInheritanceThunk.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2003-11-27-MultipleInheritanceThunk.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2003-11-27-MultipleInheritanceThunk.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2003-11-27-MultipleInheritanceThunk.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2003-11-27-MultipleInheritanceThunk.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2003-11-27-MultipleInheritanceThunk.cpp Wed Mar 21 11:02:34 2012
@@ -1,6 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-
 struct CallSite {
   int X;
 

Copied: dragonegg/trunk/test/compilator/local/c++/2003-11-29-DuplicatedCleanupTest.cpp (from r153088, dragonegg/trunk/test/validator/c++/2003-11-29-DuplicatedCleanupTest.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2003-11-29-DuplicatedCleanupTest.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2003-11-29-DuplicatedCleanupTest.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2003-11-29-DuplicatedCleanupTest.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2003-11-29-DuplicatedCleanupTest.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2003-11-29-DuplicatedCleanupTest.cpp Wed Mar 21 11:02:34 2012
@@ -1,6 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-
 void doesntThrow() throw();
 struct F {
   ~F() { doesntThrow(); }

Copied: dragonegg/trunk/test/compilator/local/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp (from r153088, dragonegg/trunk/test/validator/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2003-12-08-ArrayOfPtrToMemberFunc.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2003-12-08-ArrayOfPtrToMemberFunc.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2003-12-08-ArrayOfPtrToMemberFunc.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp Wed Mar 21 11:02:34 2012
@@ -1,5 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
 struct Evil {
  void fun ();
 };

Copied: dragonegg/trunk/test/compilator/local/c++/2004-03-08-ReinterpretCastCopy.cpp (from r153088, dragonegg/trunk/test/validator/c++/2004-03-08-ReinterpretCastCopy.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2004-03-08-ReinterpretCastCopy.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2004-03-08-ReinterpretCastCopy.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2004-03-08-ReinterpretCastCopy.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-03-08-ReinterpretCastCopy.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2004-03-08-ReinterpretCastCopy.cpp Wed Mar 21 11:02:34 2012
@@ -1,5 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
 struct A {
   virtual void Method() = 0;
 };

Copied: dragonegg/trunk/test/compilator/local/c++/2004-03-15-CleanupsAndGotos.cpp (from r153088, dragonegg/trunk/test/validator/c++/2004-03-15-CleanupsAndGotos.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2004-03-15-CleanupsAndGotos.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2004-03-15-CleanupsAndGotos.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2004-03-15-CleanupsAndGotos.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-03-15-CleanupsAndGotos.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2004-03-15-CleanupsAndGotos.cpp Wed Mar 21 11:02:34 2012
@@ -1,5 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
 // Testcase from Bug 291
 
 struct X {

Copied: dragonegg/trunk/test/compilator/local/c++/2004-06-08-LateTemplateInstantiation.cpp (from r153088, dragonegg/trunk/test/validator/c++/2004-06-08-LateTemplateInstantiation.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2004-06-08-LateTemplateInstantiation.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2004-06-08-LateTemplateInstantiation.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2004-06-08-LateTemplateInstantiation.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-06-08-LateTemplateInstantiation.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2004-06-08-LateTemplateInstantiation.cpp Wed Mar 21 11:02:34 2012
@@ -1,7 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-
-
 template<typename Ty>
 struct normal_iterator {
   int FIELD;

Copied: dragonegg/trunk/test/compilator/local/c++/2004-09-27-CompilerCrash.cpp (from r153088, dragonegg/trunk/test/validator/c++/2004-09-27-CompilerCrash.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2004-09-27-CompilerCrash.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2004-09-27-CompilerCrash.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2004-09-27-CompilerCrash.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-09-27-CompilerCrash.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2004-09-27-CompilerCrash.cpp Wed Mar 21 11:02:34 2012
@@ -1,5 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
 struct Pass {} ;
 template<typename PassName>
 Pass *callDefaultCtor() { return new PassName(); }

Copied: dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFields-1.cpp (from r153088, dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFields-1.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFields-1.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFields-1.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2007-04-05-PackedBitFields-1.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFields-1.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFields-1.cpp Wed Mar 21 11:02:34 2012
@@ -1,5 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
 #ifdef PACKED
 #define P __attribute__((packed))
 #else

Copied: dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp (from r153088, dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFieldsOverlap-2.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFieldsOverlap-2.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2007-04-05-PackedBitFieldsOverlap-2.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp Wed Mar 21 11:02:34 2012
@@ -1,5 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
 #ifdef PACKED
 #define P __attribute__((packed))
 #else

Copied: dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap.cpp (from r153088, dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFieldsOverlap.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFieldsOverlap.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2007-04-05-PackedBitFieldsOverlap.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap.cpp Wed Mar 21 11:02:34 2012
@@ -1,6 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-
 #ifdef PACKED
 #define P __attribute__((packed))
 #else

Copied: dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsSmall.cpp (from r153088, dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsSmall.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFieldsSmall.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFieldsSmall.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2007-04-05-PackedBitFieldsSmall.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsSmall.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsSmall.cpp Wed Mar 21 11:02:34 2012
@@ -1,6 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-
 #ifdef PACKED
 // This is an example where size of Packed struct is smaller then 
 // the size of bit field type.

Copied: dragonegg/trunk/test/compilator/local/c++/2007-04-05-StructPackedFieldUnpacked.cpp (from r153088, dragonegg/trunk/test/validator/c++/2007-04-05-StructPackedFieldUnpacked.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-StructPackedFieldUnpacked.cpp?p2=dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-StructPackedFieldUnpacked.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2007-04-05-StructPackedFieldUnpacked.cpp&r1=153088&r2=153191&rev=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-04-05-StructPackedFieldUnpacked.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-04-05-StructPackedFieldUnpacked.cpp Wed Mar 21 11:02:34 2012
@@ -1,5 +1,3 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
 #ifdef PACKED
 #define P __attribute__((packed))
 #else

Removed: dragonegg/trunk/test/compilator/local/integration-O2.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/integration-O2.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/integration-O2.cpp (original)
+++ dragonegg/trunk/test/compilator/local/integration-O2.cpp (removed)
@@ -1,19 +0,0 @@
-// RUN: %llvmgxx %s -O2 -S -o - | FileCheck %s
-
-// This test verifies that we get expected codegen out of the -O2 optimization
-// level from the full optimizer.
-
-
-
-// Verify that ipsccp is running and can eliminate globals.
-static int test1g = 42;
-void test1f1() {
-  if (test1g == 0) test1g = 0;
-}
-int test1f2() {
-  return test1g;
-}
-
-// CHECK: @_Z7test1f2v()
-// CHECK: entry:
-// CHECK-NEXT: ret i32 42

Removed: dragonegg/trunk/test/compilator/local/ptr-to-method-devirt.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/ptr-to-method-devirt.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/ptr-to-method-devirt.cpp (original)
+++ dragonegg/trunk/test/compilator/local/ptr-to-method-devirt.cpp (removed)
@@ -1,14 +0,0 @@
-// PR1602
-// RUN: %llvmgxx -S %s -o - -O3 | not grep ptrtoint
-// RUN: %llvmgxx -S %s -o - -O3 | grep getelementptr | count 1
-
-
-struct S { virtual void f(); };
-
-typedef void (S::*P)(void);
-
-const P p = &S::f; 
-
-void g(S s) {
-   (s.*p)();
- }

Added: dragonegg/trunk/test/compilator/validator-uplink
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/validator-uplink?rev=153191&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/validator-uplink (added)
+++ dragonegg/trunk/test/compilator/validator-uplink Wed Mar 21 11:02:34 2012
@@ -0,0 +1 @@
+link ../validator
\ No newline at end of file

Propchange: dragonegg/trunk/test/compilator/validator-uplink
------------------------------------------------------------------------------
    svn:special = *

Modified: dragonegg/trunk/test/validator/c++/2003-11-02-WeakLinkage.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2003-11-02-WeakLinkage.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2003-11-02-WeakLinkage.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2003-11-02-WeakLinkage.cpp Wed Mar 21 11:02:34 2012
@@ -1,4 +1,4 @@
-// RUN: %dragonegg -xc++ -S -o - %s | not grep weak
+// RUN: %dragonegg -xc++ -S -o - %s | FileCheck %s
 // The template should compile to linkonce linkage, not weak linkage.
 
 template<class T>
@@ -6,6 +6,7 @@
 
 template<class T>
 inline void thefunc() {}
+// CHECK: linkonce_odr void @_Z7thefuncIiEvv
 
 void test() {
   thefunc<int>();

Removed: dragonegg/trunk/test/validator/c++/2003-11-18-PtrMemConstantInitializer.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2003-11-18-PtrMemConstantInitializer.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2003-11-18-PtrMemConstantInitializer.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2003-11-18-PtrMemConstantInitializer.cpp (removed)
@@ -1,14 +0,0 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-struct Gfx {
-  void opMoveSetShowText();
-};
-
-struct Operator {
-  void (Gfx::*func)();
-};
-
-Operator opTab[] = {
-  {&Gfx::opMoveSetShowText},
-};
-

Removed: dragonegg/trunk/test/validator/c++/2003-11-25-ReturningOpaqueByValue.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2003-11-25-ReturningOpaqueByValue.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2003-11-25-ReturningOpaqueByValue.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2003-11-25-ReturningOpaqueByValue.cpp (removed)
@@ -1,12 +0,0 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-#include <vector>
-std::vector<int> my_method ();
-
-int
-main ()
-{
-  my_method ();
-  return 0;
-}
-

Removed: dragonegg/trunk/test/validator/c++/2003-11-27-MultipleInheritanceThunk.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2003-11-27-MultipleInheritanceThunk.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2003-11-27-MultipleInheritanceThunk.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2003-11-27-MultipleInheritanceThunk.cpp (removed)
@@ -1,28 +0,0 @@
-// RUN: %dragonegg -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;

Removed: dragonegg/trunk/test/validator/c++/2003-11-29-DuplicatedCleanupTest.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2003-11-29-DuplicatedCleanupTest.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2003-11-29-DuplicatedCleanupTest.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2003-11-29-DuplicatedCleanupTest.cpp (removed)
@@ -1,41 +0,0 @@
-// RUN: %dragonegg -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; }
-}
-}

Removed: dragonegg/trunk/test/validator/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2003-12-08-ArrayOfPtrToMemberFunc.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp (removed)
@@ -1,12 +0,0 @@
-// RUN: %dragonegg -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()]) ();
-}

Modified: dragonegg/trunk/test/validator/c++/2004-01-11-DynamicInitializedConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2004-01-11-DynamicInitializedConstant.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-01-11-DynamicInitializedConstant.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2004-01-11-DynamicInitializedConstant.cpp Wed Mar 21 11:02:34 2012
@@ -1,6 +1,6 @@
-// RUN: %dragonegg -xc++ -S -o - %s | not grep { constant }
+// RUN: %dragonegg -xc++ -S -o - %s | FileCheck %s
 
 extern int X;
 const int Y = X;
 const int* foo() { return &Y; }
-
+// CHECK-NOT: constant

Removed: dragonegg/trunk/test/validator/c++/2004-03-08-ReinterpretCastCopy.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2004-03-08-ReinterpretCastCopy.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-03-08-ReinterpretCastCopy.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2004-03-08-ReinterpretCastCopy.cpp (removed)
@@ -1,21 +0,0 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-struct A {
-  virtual void Method() = 0;
-};
-
-struct B : public A {
-  virtual void Method() { }
-};
-
-typedef void (A::*fn_type_a)(void);
-typedef void (B::*fn_type_b)(void);
-
-int main(int argc, char **argv)
-{
-  fn_type_a f = reinterpret_cast<fn_type_a>(&B::Method);
-  fn_type_b g = reinterpret_cast<fn_type_b>(f);
-  B b;
-  (b.*g)();
-  return 0;
-}

Modified: dragonegg/trunk/test/validator/c++/2004-03-09-UnmangledBuiltinMethods.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2004-03-09-UnmangledBuiltinMethods.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-03-09-UnmangledBuiltinMethods.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2004-03-09-UnmangledBuiltinMethods.cpp Wed Mar 21 11:02:34 2012
@@ -1,8 +1,8 @@
-// RUN: %dragonegg -xc++ -S -o - %s | grep _ZN11AccessFlags6strlenEv
+// RUN: %dragonegg -xc++ -S -o - %s | FileCheck %s
 
 struct AccessFlags {
   void strlen();
 };
 
 void AccessFlags::strlen() { }
-
+// CHECK: define void @_ZN11AccessFlags6strlenEv

Removed: dragonegg/trunk/test/validator/c++/2004-03-15-CleanupsAndGotos.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2004-03-15-CleanupsAndGotos.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-03-15-CleanupsAndGotos.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2004-03-15-CleanupsAndGotos.cpp (removed)
@@ -1,14 +0,0 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-// Testcase from Bug 291
-
-struct X {
-  ~X();
-};
-
-void foo() {
-  X v;
-
-TryAgain:
-  goto TryAgain;
-}

Removed: dragonegg/trunk/test/validator/c++/2004-06-08-LateTemplateInstantiation.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2004-06-08-LateTemplateInstantiation.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-06-08-LateTemplateInstantiation.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2004-06-08-LateTemplateInstantiation.cpp (removed)
@@ -1,19 +0,0 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-
-
-template<typename Ty>
-struct normal_iterator {
-  int FIELD;
-};
-
-void foo(normal_iterator<int>);
-normal_iterator<int> baz();
-
-void bar() {
-  foo(baz());
-}
-
-void *bar2() {
-  return (void*)foo;
-}

Removed: dragonegg/trunk/test/validator/c++/2004-09-27-CompilerCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2004-09-27-CompilerCrash.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-09-27-CompilerCrash.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2004-09-27-CompilerCrash.cpp (removed)
@@ -1,13 +0,0 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-struct Pass {} ;
-template<typename PassName>
-Pass *callDefaultCtor() { return new PassName(); }
-
-void foo(Pass *(*C)());
-
-#include <string>
-
-bool foo(std::string &X) {
-  return X.empty();
-}

Modified: dragonegg/trunk/test/validator/c++/2004-09-27-DidntEmitTemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2004-09-27-DidntEmitTemplate.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-09-27-DidntEmitTemplate.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2004-09-27-DidntEmitTemplate.cpp Wed Mar 21 11:02:34 2012
@@ -1,5 +1,4 @@
-// RUN: %dragonegg -xc++ %s -S -o - | grep callDefaultCtor | \
-// RUN:   not grep declare
+// RUN: %dragonegg -xc++ %s -S -o - | FileCheck %s
 
 // This is a testcase for LLVM PR445, which was a problem where the 
 // instantiation of callDefaultCtor was not being emitted correctly.
@@ -8,6 +7,7 @@
 
 template<typename PassName>
 Pass *callDefaultCtor() { return new Pass(); }
+// CHECK: define linkonce_odr %struct.Pass* @_Z15callDefaultCtorI4PassEPS0_v
 
 void foo(Pass *(*C)());
 
@@ -20,4 +20,3 @@
   return X.empty();
 }
 void baz() { foo(callDefaultCtor<Pass>); }
-

Modified: dragonegg/trunk/test/validator/c++/2004-11-27-EmitsUnusedInlineFunctions.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2004-11-27-EmitsUnusedInlineFunctions.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2004-11-27-EmitsUnusedInlineFunctions.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2004-11-27-EmitsUnusedInlineFunctions.cpp Wed Mar 21 11:02:34 2012
@@ -1,7 +1,7 @@
+// RUN: %dragonegg %s -S -o - | FileCheck %s
 // The C++ front-end was emitting WAY too many inline functions.  This test
 // verifies that it does not emit the body of getchar, because it is not used.
 // This corresponds to PR459
 
-// RUN: %dragonegg %s -S -o - | not grep {^i32 .getchar}
-
 #include <stdio.h>
+// CHECK-NOT: define {{.*}}getchar

Modified: dragonegg/trunk/test/validator/c++/2005-01-03-StaticInitializers.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2005-01-03-StaticInitializers.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2005-01-03-StaticInitializers.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2005-01-03-StaticInitializers.cpp Wed Mar 21 11:02:34 2012
@@ -1,4 +1,4 @@
-// RUN: %dragonegg %s -S -o - | not grep llvm.global_ctor
+// RUN: %dragonegg %s -S -o - | FileCheck %s
 
 struct S {
   int  A[2];
@@ -6,3 +6,4 @@
 
 int XX = (int)(long)&(((struct S*)0)->A[1]);
 
+// CHECK-NOT: llvm.global_ctors

Modified: dragonegg/trunk/test/validator/c++/2005-02-13-BadDynamicInit.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2005-02-13-BadDynamicInit.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2005-02-13-BadDynamicInit.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2005-02-13-BadDynamicInit.cpp Wed Mar 21 11:02:34 2012
@@ -1,4 +1,4 @@
-// RUN: %dragonegg %s -S -o - | not grep llvm.global_ctors
+// RUN: %dragonegg %s -S -o - | FileCheck %s
 // This testcase corresponds to PR509
 struct Data {
   unsigned *data;
@@ -7,3 +7,4 @@
 
 Data shared_null = { shared_null.array };
 
+// CHECK-NOT: llvm.global_ctors

Modified: dragonegg/trunk/test/validator/c++/2005-02-14-BitFieldOffset.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2005-02-14-BitFieldOffset.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2005-02-14-BitFieldOffset.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2005-02-14-BitFieldOffset.cpp Wed Mar 21 11:02:34 2012
@@ -1,4 +1,4 @@
-// RUN: %dragonegg %s -S -o - | not grep {i32 6}
+// RUN: %dragonegg %s -S -o - | FileCheck %s
 
 struct QVectorTypedData {
     int size;
@@ -9,3 +9,4 @@
 void foo(QVectorTypedData *X) {
   X->array[0] = 123;
 }
+// CHECK-NOT: i32 6

Modified: dragonegg/trunk/test/validator/c++/2005-07-21-VirtualBaseAccess.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2005-07-21-VirtualBaseAccess.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2005-07-21-VirtualBaseAccess.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2005-07-21-VirtualBaseAccess.cpp Wed Mar 21 11:02:34 2012
@@ -1,4 +1,4 @@
-// RUN: %dragonegg -xc++ %s -S -o - | opt -die -S | not grep cast
+// RUN: %dragonegg -xc++ %s -S -o - | FileCheck %s
 
 void foo(int*);
 
@@ -9,6 +9,9 @@
 struct BAR : virtual FOO { BAR(); };
 
 int testfn() {
+  // CHECK: "alloca point" = bitcast i32 0 to i32
+  // CHECK: "ssa point" = bitcast i32 0 to i32
+  // CHECK-NOT: cast
   BAR B;
   foo(&B.X);
 }

Modified: dragonegg/trunk/test/validator/c++/2006-11-20-GlobalSymbols.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2006-11-20-GlobalSymbols.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2006-11-20-GlobalSymbols.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2006-11-20-GlobalSymbols.cpp Wed Mar 21 11:02:34 2012
@@ -1,7 +1,7 @@
+// RUN: %dragonegg -O0 -g -S %s -o - | llc | %dragonegg -c -xassembler - -o /dev/null
 // PR1013
 // Check to make sure debug symbols use the correct name for globals and
 // functions.  Will not assemble if it fails to.
-// RUN: %dragonegg_only -O0 -g -c %s
 
 int foo __asm__("f\001oo");
 

Modified: dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-01-06-ELF-Thunk-Sections.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections.cpp Wed Mar 21 11:02:34 2012
@@ -1,6 +1,13 @@
-// RUN: %dragonegg %s -S -o - | not grep gnu.linkonce.
+// RUN: %dragonegg %s -S -o - | FileCheck %s
 // PR1085
 
+// CHECK: define weak void @_ZThn8_N
+// CHECK: define weak void @_ZThn8_N
+// CHECK: define weak void @_ZThn8_N
+// CHECK: define weak void @_ZThn8_N
+// CHECK: define weak void @_ZThn8_N
+// CHECK: define weak void @_ZThn8_N
+
 class 
 __attribute__((visibility("default"))) QGenericArgument
 {

Modified: dragonegg/trunk/test/validator/c++/2007-03-27-FunctionVarRename.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-03-27-FunctionVarRename.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-03-27-FunctionVarRename.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-03-27-FunctionVarRename.cpp Wed Mar 21 11:02:34 2012
@@ -1,7 +1,6 @@
-// RUN: %dragonegg %s -S -o - | not grep eprintf1
-// RUN: %dragonegg %s -S -o - | grep eprintf
-
+// RUN: %dragonegg %s -S -o - | FileCheck %s
 // Only one eprintf should exist in the output
+// CHECK-NOT: eprintf1
 
 extern "C" 
 void __eprintf();

Removed: dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFields-1.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-04-05-PackedBitFields-1.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFields-1.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFields-1.cpp (removed)
@@ -1,23 +0,0 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-#ifdef PACKED
-#define P __attribute__((packed))
-#else
-#define P
-#endif
-
-struct P M_Packed { 
-  unsigned int l_Packed; 
-  unsigned short k_Packed : 6, 
-    i_Packed : 15,
-    j_Packed : 11;
-  
-}; 
-
-struct M_Packed sM_Packed; 
-
-int testM_Packed (void) { 
-  struct M_Packed x; 
-  return (x.i_Packed != 0);
-}
-      

Removed: dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-04-05-PackedBitFieldsOverlap-2.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp (removed)
@@ -1,24 +0,0 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-#ifdef PACKED
-#define P __attribute__((packed))
-#else
-#define P
-#endif
-
-struct P M_Packed { 
-  unsigned long sorted : 1;
-  unsigned long from_array : 1;
-  unsigned long mixed_encoding : 1;
-  unsigned long encoding : 8;
-  unsigned long count : 21;
-
-}; 
-
-struct M_Packed sM_Packed; 
-
-int testM_Packed (void) { 
-  struct M_Packed x; 
-  return (x.count != 0);
-}
-      

Removed: dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-04-05-PackedBitFieldsOverlap.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsOverlap.cpp (removed)
@@ -1,24 +0,0 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-
-#ifdef PACKED
-#define P __attribute__((packed))
-#else
-#define P
-#endif
-
-struct P M_Packed { 
-  unsigned int l_Packed; 
-  unsigned short k_Packed : 6, 
-    i_Packed : 15;
-  char c;
-  
-}; 
-
-struct M_Packed sM_Packed; 
-
-int testM_Packed (void) { 
-  struct M_Packed x; 
-  return (x.i_Packed != 0);
-}
-      

Removed: dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsSmall.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-04-05-PackedBitFieldsSmall.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsSmall.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-04-05-PackedBitFieldsSmall.cpp (removed)
@@ -1,27 +0,0 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-
-#ifdef PACKED
-// This is an example where size of Packed struct is smaller then 
-// the size of bit field type.
-#define P __attribute__((packed))
-#else
-#define P
-#endif
-
-struct P M_Packed { 
-  unsigned long long X:50;
-  unsigned Y:2;
-}; 
-
-struct M_Packed sM_Packed; 
-
-int testM_Packed (void) { 
-  struct M_Packed x; 
-  return (0 != x.Y);
-}
-      
-int testM_Packed2 (void) { 
-  struct M_Packed x; 
-  return (0 != x.X);
-}

Removed: dragonegg/trunk/test/validator/c++/2007-04-05-StructPackedFieldUnpacked.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-04-05-StructPackedFieldUnpacked.cpp?rev=153190&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-04-05-StructPackedFieldUnpacked.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-04-05-StructPackedFieldUnpacked.cpp (removed)
@@ -1,25 +0,0 @@
-// RUN: %dragonegg -S %s -o - | llvm-as -o /dev/null
-
-#ifdef PACKED
-#define P __attribute__((packed))
-#else
-#define P
-#endif
-
-struct UnPacked {
- 	int X;	
-	int Y;
-};
-
-struct P M_Packed { 
-  unsigned char A;
-  struct UnPacked B;
-}; 
-
-struct M_Packed sM_Packed; 
-
-int testM_Packed (void) { 
-  struct M_Packed x; 
-  return (x.B.Y != 0);
-}
-      

Modified: dragonegg/trunk/test/validator/c++/2007-07-29-RestrictPtrArg.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-07-29-RestrictPtrArg.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-07-29-RestrictPtrArg.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-07-29-RestrictPtrArg.cpp Wed Mar 21 11:02:34 2012
@@ -1,6 +1,7 @@
-// RUN: %dragonegg -S %s -o - | grep noalias
+// RUN: %dragonegg -S %s -o - | FileCheck %s
 
 void foo(int * __restrict myptr1, int * myptr2) {
+// CHECK: @_Z3fooPiS_(i32* noalias %myptr1, i32* %myptr2)
   myptr1[0] = 0;
   myptr2[0] = 0;
 }

Modified: dragonegg/trunk/test/validator/c++/2007-07-29-RestrictRefArg.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-07-29-RestrictRefArg.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-07-29-RestrictRefArg.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-07-29-RestrictRefArg.cpp Wed Mar 21 11:02:34 2012
@@ -1,6 +1,7 @@
-// RUN: %dragonegg -S %s -o - | grep noalias
+// RUN: %dragonegg -S %s -o - | FileCheck %s
 
 void foo(int & __restrict myptr1, int & myptr2) {
+// CHECK: @_Z3fooRiS_(i32* noalias %myptr1, i32* %myptr2)
   myptr1 = 0;
   myptr2 = 0;
 }

Modified: dragonegg/trunk/test/validator/c++/2007-08-01-RestrictMethod.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-08-01-RestrictMethod.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-08-01-RestrictMethod.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-08-01-RestrictMethod.cpp Wed Mar 21 11:02:34 2012
@@ -1,5 +1,4 @@
-// RUN: %dragonegg -S %s -o - | grep noalias
-
+// RUN: %dragonegg -S %s -o - | FileCheck %s
 
 class foo {
   int member[4];
@@ -9,5 +8,6 @@
 };
 
 void foo::bar(int * a) __restrict {
+// CHECK: @_ZN3foo3barEPi(%struct.foo* noalias %this, i32* %a)
   member[3] = *a;
 }

Modified: dragonegg/trunk/test/validator/c++/2009-02-16-CtorNames-dbg.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2009-02-16-CtorNames-dbg.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2009-02-16-CtorNames-dbg.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2009-02-16-CtorNames-dbg.cpp Wed Mar 21 11:02:34 2012
@@ -1,9 +1,10 @@
-// RUN: %dragonegg -S -g %s -o - | grep "\~A"
+// RUN: %dragonegg -S -g %s -o - | FileCheck %s
 class A {
   int i;
 public:
   A() { i = 0; }
  ~A() { i = 42; }
+// CHECK: A::~A
 };
 
 A a;

Modified: dragonegg/trunk/test/validator/c++/weak-external.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/weak-external.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/weak-external.cpp (original)
+++ dragonegg/trunk/test/validator/c++/weak-external.cpp Wed Mar 21 11:02:34 2012
@@ -1,4 +1,4 @@
-// RUN: %dragonegg %s -S -O2 -o - | not grep {_ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20forward_iterator_tag}
+// RUN: %dragonegg %s -S -O2 -o - | FileCheck %s
 // PR4262
 
 // The "basic_string" extern template instantiation declaration is supposed to
@@ -15,3 +15,4 @@
 void dummysymbol() {
   throw(std::runtime_error("string"));
 }
+// CHECK-NOT: _ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20forward_iterator_tag

Modified: dragonegg/trunk/test/validator/c++/x86-64-abi-sret-vs-2word-struct-param.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/x86-64-abi-sret-vs-2word-struct-param.cpp?rev=153191&r1=153190&r2=153191&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/x86-64-abi-sret-vs-2word-struct-param.cpp (original)
+++ dragonegg/trunk/test/validator/c++/x86-64-abi-sret-vs-2word-struct-param.cpp Wed Mar 21 11:02:34 2012
@@ -1,4 +1,4 @@
-// RUN: %dragonegg -S %s -o - | grep byval | count 2
+// RUN: %dragonegg -S %s -o - | FileCheck %s
 // XTARGET: x86
 // PR4242
 // (PR 4242 bug is on 64-bit only, test passes on x86-32 as well)
@@ -12,6 +12,7 @@
 };
 
 extern "C" S fail(int, int, int, int, T t, void* p) {
+// CHECK: %struct.T* byval
     S s;
     s.data[0] = t.data[0];
     s.data[1] = t.data[1];
@@ -20,6 +21,7 @@
 }
 
 extern "C" S* succeed(S* sret, int, int, int, int, T t, void* p) {
+// CHECK: %struct.T* byval
     sret->data[0] = t.data[0];
     sret->data[1] = t.data[1];
     sret->data[2] = p;





More information about the llvm-commits mailing list