aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/typedef-tag-not-visible.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/typedef-tag-not-visible.m')
-rw-r--r--test/Modules/typedef-tag-not-visible.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Modules/typedef-tag-not-visible.m b/test/Modules/typedef-tag-not-visible.m
new file mode 100644
index 000000000000..e1a640633f69
--- /dev/null
+++ b/test/Modules/typedef-tag-not-visible.m
@@ -0,0 +1,8 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify
+
+@import TypedefTag;
+
+typedef struct { int x; } TypedefStructHidden_t;
+typedef struct { int x; } TypedefStructVisible_t; // expected-error{{typedef redefinition}}
+// expected-note@typedef-tag.h:1 {{here}}