Skip to content

Commit 523e9e9

Browse files
committed
[APINotes] Add tests for namespace redecls
rdar://113403829
1 parent 2e7a890 commit 523e9e9

File tree

1 file changed

+10
-0
lines changed
  • clang/test/APINotes/Inputs/Frameworks/CXXInteropKit.framework/Headers

1 file changed

+10
-0
lines changed

clang/test/APINotes/Inputs/Frameworks/CXXInteropKit.framework/Headers/CXXInteropKit.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,26 @@ typedef NS_OPTIONS(NSUInteger, NSSomeEnumOptions) {
2222
NSSomeEnumWithBlue,
2323
};
2424

25+
namespace Namespace1 { namespace Nested1 {} }
26+
2527
namespace Namespace1 {
2628
struct char_box { char c; };
2729
void funcInNamespace();
2830

2931
namespace Nested1 {
32+
void funcInNestedNamespace(int i);
3033
struct char_box { char c; };
34+
}
35+
36+
namespace Nested1 {
3137
void funcInNestedNamespace(int i);
3238

3339
namespace Namespace1 {
3440
struct char_box { char c; };
3541
} // namespace Namespace1
3642
} // namespace Nested1
43+
44+
namespace Nested1 { namespace Namespace1 {} }
3745
} // namespace Namespace1
46+
47+
namespace Namespace1 {}

0 commit comments

Comments
 (0)