uow-1.C: New.

2010-08-17  Kai Tietz  <kai.tietz@onevision.com>

        * g++.dg/ext/uow-1.C: New.
        * g++.dg/ext/uow-2.C: New.
        * g++.dg/ext/uow-3.C: New.
        * g++.dg/ext/uow-4.C: New.

From-SVN: r163299
This commit is contained in:
Kai Tietz 2010-08-17 09:50:38 +00:00 committed by Kai Tietz
parent 743ad76e9e
commit f9abf412e2
5 changed files with 47 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2010-08-17 Kai Tietz <kai.tietz@onevision.com>
* g++.dg/ext/uow-1.C: New.
* g++.dg/ext/uow-2.C: New.
* g++.dg/ext/uow-3.C: New.
* g++.dg/ext/uow-4.C: New.
2010-08-17 Richard Guenther <rguenther@suse.de>
PR testsuite/45266

View File

@ -0,0 +1,12 @@
/* { dg-do compile } */
/* { dg-options "-Wall" } */
extern "C" {
typedef int UOW;
struct ABC {
UOW UOW;
};
}

View File

@ -0,0 +1,8 @@
/* { dg-do compile } */
/* { dg-options "-Wall -fms-extensions" } */
typedef int UOW;
struct ABC {
UOW UOW;
};

View File

@ -0,0 +1,8 @@
/* { dg-do compile } */
/* { dg-options "-Wall" } */
typedef int UOW; /* { dg-error "" } */
struct ABC {
UOW UOW; /* { dg-error "" } */
};

View File

@ -0,0 +1,12 @@
/* { dg-do compile } */
/* { dg-options "-Wall -pedantic" } */
extern "C" {
typedef int UOW; /* { dg-error "" } */
struct ABC {
UOW UOW; /* { dg-error "" } */
};
}