diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2010-03-23 15:20:29 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2010-03-23 15:20:29 +0000 |
commit | 54add740383d5a671cb31a81fe95ce5802478565 (patch) | |
tree | af31ee29a272b1a042a389c1fa42c1f70d5d8dad | |
parent | e0e3300cb12b24ae1c2898c7253bb3d80f30d419 (diff) | |
download | gcc-54add740383d5a671cb31a81fe95ce5802478565.zip gcc-54add740383d5a671cb31a81fe95ce5802478565.tar.gz gcc-54add740383d5a671cb31a81fe95ce5802478565.tar.bz2 |
testsuite_tr1.h (NType, [...]): Add.
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.
From-SVN: r157673
-rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/is_pod/value.cc | 28 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/is_standard_layout/value.cc | 28 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/is_trivial/value.cc | 28 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/util/testsuite_tr1.h | 27 |
5 files changed, 34 insertions, 84 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 35da60f..7d898f6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/testsuite/20_util/is_pod/value.cc b/libstdc++-v3/testsuite/20_util/is_pod/value.cc index 6f3d109..e4926d5 100644 --- a/libstdc++-v3/testsuite/20_util/is_pod/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_pod/value.cc @@ -22,34 +22,6 @@ #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; diff --git a/libstdc++-v3/testsuite/20_util/is_standard_layout/value.cc b/libstdc++-v3/testsuite/20_util/is_standard_layout/value.cc index dbbb7fa..7ef8609 100644 --- a/libstdc++-v3/testsuite/20_util/is_standard_layout/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_standard_layout/value.cc @@ -22,34 +22,6 @@ #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; diff --git a/libstdc++-v3/testsuite/20_util/is_trivial/value.cc b/libstdc++-v3/testsuite/20_util/is_trivial/value.cc index 2024e8e..e6ff8fa 100644 --- a/libstdc++-v3/testsuite/20_util/is_trivial/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_trivial/value.cc @@ -22,34 +22,6 @@ #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; diff --git a/libstdc++-v3/testsuite/util/testsuite_tr1.h b/libstdc++-v3/testsuite/util/testsuite_tr1.h index aecf562..4f3e574 100644 --- a/libstdc++-v3/testsuite/util/testsuite_tr1.h +++ b/libstdc++-v3/testsuite/util/testsuite_tr1.h @@ -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; } |