1 // Based on C++20 10.2 example 4.
3 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -verify -o %t
7 struct S
{ // expected-note {{previous declaration is here}}
11 export
typedef S S
; // OK, does not redeclare an entity
12 export
struct S
; // expected-error {{cannot export redeclaration 'S' here since the previous declaration has module linkage}}