diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-23 15:20:29 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-23 15:20:29 +0000 |
commit | 0e72cf66667dfa220cffbbf60dc88f7469c07a67 (patch) | |
tree | af31ee29a272b1a042a389c1fa42c1f70d5d8dad /libstdc++-v3/testsuite/util/testsuite_tr1.h | |
parent | dd2e0bd057323eae68fcc6c9b099f32f1061391d (diff) | |
download | gcc-0e72cf66667dfa220cffbbf60dc88f7469c07a67.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157673 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/util/testsuite_tr1.h')
-rw-r--r-- | libstdc++-v3/testsuite/util/testsuite_tr1.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/util/testsuite_tr1.h b/libstdc++-v3/testsuite/util/testsuite_tr1.h index aecf56220e0..4f3e574ccc2 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; } |