OSDN Git Service

2010-03-23 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Mar 2010 15:03:50 +0000 (15:03 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:14:18 +0000 (14:14 +0900)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157671 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

index 0fbab92..35da60f 100644 (file)
@@ -1,5 +1,11 @@
 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.
+
+2010-03-23  Paolo Carlini  <paolo.carlini@oracle.com>
+
        * include/bits/stl_algobase.h (lower_bound(_ForwardIterator,
        _ForwardIterator, const _Tp&, _Compare)): Move...
        * include/bits/stl_algo.h: ... here.
index e4926d5..6f3d109 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 7ef8609..dbbb7fa 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 e6ff8fa..2024e8e 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;