bolt/deps/llvm-18.1.8/clang/test/Modules/inner-struct-redefines-invisible.m

13 lines
325 B
Mathematica
Raw Normal View History

2025-02-14 19:21:04 +01:00
// 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;
};