added more cases

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6744 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-11-16 00:18:32 +00:00
commit 4ac505b4d4
3 changed files with 70 additions and 0 deletions

View file

@ -2,6 +2,7 @@
// this example shows a problem with 'dump_nested' (parser.y).
// bug #949654
%inline %{
typedef struct s1 {
union {
@ -19,3 +20,22 @@ char *name;
} s2;
%}
// bug #491476
%inline %{
struct {
struct {
int a;
} a, b;
} a;
%}
// bug #909387
%inline %{
struct foo {
struct happy; // no warning
struct sad { int x; }; // warning
happy *good(); // produces good code
sad *bad(); // produces bad code
};