summaryrefslogtreecommitdiffstats
path: root/test/Modules/inner-struct-redefines-invisible.m
blob: ecf6d808df3d5fc8bba61e6ac9c88d35b6c2b42b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: rm -rf %t
// RUN: %clang_cc1 -fsyntax-only -I%S/Inputs -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -verify %s
// expected-no-diagnostics

@import innerstructredef.one;

struct Outer {
// Should set lexical context when parsing 'Inner' here, otherwise there's a crash:
struct Inner {
  int x;
} field;
};