blob: d20182c88ba322ebc29cee6f151a5c48353c54ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "common.h"
typedef struct {
int i;
} MyStruct;
// EXPECT:5: Warning: Test: symbol='MyStruct': Unknown namespace for identifier 'MyStruct'
typedef enum {
TEST_MY_ENUM_A = 0
} MyEnum;
// EXPECT:11: Warning: Test: symbol='MyEnum': Unknown namespace for identifier 'MyEnum'
typedef enum {
MY_ENUM_A = 0
} TestMyEnum2;
// EXPECT:17: Warning: Test: symbol='TestMyEnum2': Unknown namespace for symbol 'MY_ENUM_A'
/* Stub function here so namespace isn't empty */
void test_foo (void);
|