OSDN Git Service

2010-03-23 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Mar 2010 15:20:29 +0000 (15:20 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Mar 2010 15:20:29 +0000 (15:20 +0000)
* testsuite/util/testsuite_tr1.h (NType, TType, SLType, PODType): Add.
* testsuite/20_util/is_trivial/value.cc: Adjust.
* testsuite/20_util/is_standard_layout/value.cc: Likewise.
* testsuite/20_util/is_pod/value.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157673 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/is_pod/value.cc
libstdc++-v3/testsuite/20_util/is_standard_layout/value.cc
libstdc++-v3/testsuite/20_util/is_trivial/value.cc
libstdc++-v3/testsuite/util/testsuite_tr1.h

index 35da60f..7d898f6 100644 (file)
@@ -1,5 +1,12 @@
 2010-03-23  Paolo Carlini  <paolo.carlini@oracle.com>
 
+       * testsuite/util/testsuite_tr1.h (NType, TType, SLType, PODType): Add.
+       * testsuite/20_util/is_trivial/value.cc: Adjust.
+       * testsuite/20_util/is_standard_layout/value.cc: Likewise.
+       * testsuite/20_util/is_pod/value.cc: Likewise.
+
+2010-03-23  Paolo Carlini  <paolo.carlini@oracle.com>
+
        * testsuite/20_util/is_trivial/value.cc: New.
        * testsuite/20_util/is_standard_layout/value.cc: Likewise.
        * testsuite/20_util/is_pod/value.cc: Extend.
index 6f3d109..e4926d5 100644 (file)
 #include <testsuite_hooks.h>
 #include <testsuite_tr1.h>
 
-struct NType   // neither trivial nor standard-layout
-{
-  int i;
-  int j;
-  virtual ~NType();
-};
-
-struct TType   // trivial but not standard-layout
-{
-  int i;
-
-private:
-  int j;
-};
-
-struct SLType  // standard-layout but not trivial
-{
-  int i;
-  int j;
-  ~SLType();
-};
-
-struct PODType // both trivial and standard-layout
-{
-  int i;
-  int j;
-};
-
 void test01()
 {
   bool test __attribute__((unused)) = true;
index dbbb7fa..7ef8609 100644 (file)
 #include <testsuite_hooks.h>
 #include <testsuite_tr1.h>
 
-struct NType   // neither trivial nor standard-layout
-{
-  int i;
-  int j;
-  virtual ~NType();
-};
-
-struct TType   // trivial but not standard-layout
-{
-  int i;
-
-private:
-  int j;
-};
-
-struct SLType  // standard-layout but not trivial
-{
-  int i;
-  int j;
-  ~SLType();
-};
-
-struct PODType // both trivial and standard-layout
-{
-  int i;
-  int j;
-};
-
 void test01()
 {
   bool test __attribute__((unused)) = true;
index 2024e8e..e6ff8fa 100644 (file)
 #include <testsuite_hooks.h>
 #include <testsuite_tr1.h>
 
-struct NType   // neither trivial nor standard-layout
-{
-  int i;
-  int j;
-  virtual ~NType();
-};
-
-struct TType   // trivial but not standard-layout
-{
-  int i;
-
-private:
-  int j;
-};
-
-struct SLType  // standard-layout but not trivial
-{
-  int i;
-  int j;
-  ~SLType();
-};
-
-struct PODType // both trivial and standard-layout
-{
-  int i;
-  int j;
-};
-
 void test01()
 {
   bool test __attribute__((unused)) = true;
index aecf562..4f3e574 100644 (file)
@@ -129,6 +129,33 @@ namespace __gnu_test
     explicit ExplicitClass(int&);
   };
 
+  struct NType   // neither trivial nor standard-layout
+  {
+    int i;
+    int j;
+    virtual ~NType();
+  };
+
+  struct TType   // trivial but not standard-layout
+  {
+    int i;
+  private:
+    int j;
+  };
+
+  struct SLType  // standard-layout but not trivial
+  {
+    int i;
+    int j;
+    ~SLType();
+  };
+
+  struct PODType // both trivial and standard-layout
+  {
+    int i;
+    int j;
+  };
+
   int truncate_float(float x) { return (int)x; }
   long truncate_double(double x) { return (long)x; }