| 1 |
// RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 |
|
| 3 |
// PR50797 |
| 4 |
struct a { |
| 5 |
int xxx; // expected-note {{'xxx' declared here}} |
| 6 |
}; |
| 7 |
|
| 8 |
int g_107; |
| 9 |
int g_108; |
| 10 |
int g_109; |
| 11 |
|
| 12 |
struct a g_999; // expected-note 4{{'g_999' declared here}} |
| 13 |
|
| 14 |
void b(void) { (g_910.xxx = g_910.xxx); } //expected-error 2{{use of undeclared identifier 'g_910'; did you mean 'g_999'}} |
| 15 |
|
| 16 |
void c(void) { (g_910.xxx = g_910.xxx1); } //expected-error 2{{use of undeclared identifier 'g_910'; did you mean 'g_999'}} \ |
| 17 |
expected-error {{no member named 'xxx1' in 'struct a'; did you mean 'xxx'}} |