xref: /llvm-project/clang/test/Modules/inner-struct-redefines-invisible.m (revision 213d34330f15bbce2bc04f3fb7cfb5c91b7ae41a)
1// RUN: rm -rf %t
2// RUN: %clang_cc1 -fsyntax-only -I%S/Inputs -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -verify %s
3// expected-no-diagnostics
4
5@import innerstructredef.one;
6
7struct Outer {
8// Should set lexical context when parsing 'Inner' here, otherwise there's a crash:
9struct Inner {
10  int x;
11} field;
12};
13