OSDN Git Service

2010-03-23 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 20_util / is_trivial / value.cc
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;