From: Paolo Carlini <paolo.carlini@oracle.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Cc: libstdc++ <libstdc++@gcc.gnu.org>
Subject: Re: [v3] Add some type_traits tests
Date: Tue, 23 Mar 2010 15:58:00 -0000 [thread overview]
Message-ID: <4BA8DC88.9040605@oracle.com> (raw)
In-Reply-To: <4BA8D88F.4050001@oracle.com>
[-- Attachment #1: Type: text/plain, Size: 52 bytes --]
... oh, well. Committed.
Paolo.
/////////////////
[-- Attachment #2: CL_tests_fu --]
[-- Type: text/plain, Size: 285 bytes --]
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.
[-- Attachment #3: patch_tests_fu --]
[-- Type: text/plain, Size: 3039 bytes --]
Index: testsuite/util/testsuite_tr1.h
===================================================================
--- testsuite/util/testsuite_tr1.h (revision 157670)
+++ testsuite/util/testsuite_tr1.h (working copy)
@@ -129,6 +129,33 @@
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; }
Index: testsuite/20_util/is_trivial/value.cc
===================================================================
--- testsuite/20_util/is_trivial/value.cc (revision 157671)
+++ testsuite/20_util/is_trivial/value.cc (working copy)
@@ -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;
Index: testsuite/20_util/is_pod/value.cc
===================================================================
--- testsuite/20_util/is_pod/value.cc (revision 157671)
+++ testsuite/20_util/is_pod/value.cc (working copy)
@@ -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;
Index: testsuite/20_util/is_standard_layout/value.cc
===================================================================
--- testsuite/20_util/is_standard_layout/value.cc (revision 157671)
+++ testsuite/20_util/is_standard_layout/value.cc (working copy)
@@ -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;
next prev parent reply other threads:[~2010-03-23 15:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-23 15:22 Paolo Carlini
2010-03-23 15:58 ` Paolo Carlini [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-02-21 11:08 Paolo Carlini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BA8DC88.9040605@oracle.com \
--to=paolo.carlini@oracle.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=libstdc++@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).