summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/incomplete1.C
blob: 03e363a3d5a66633b2721850f9b7e46be46a1ddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR 10202
// { dg-do compile }
// { dg-options -O0 }

extern struct _smtp_account smtp_accounts[];
typedef struct _smtp_account {
        int flags;
} Smtp_Account;

void get_smtp_host_info ()
{
	if (smtp_accounts[0].flags & 0x01)
		get_smtp_host_info();
}