mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Clang and Swift decls likely have many-to-one mappings; for instance, a RecordDecl and a TypedefDecl in Clang are both imported as the same Swift NominalTypeDecl. This commit reduces duplication when we print Clang decls in Swift. rdar://23275959
9 lines
447 B
Swift
9 lines
447 B
Swift
// RUN: echo '#include "header.h"' > %t.m
|
|
// RUN: %sourcekitd-test -req=interface-gen -header %S/Inputs/header.h -- -fsyntax-only %t.m -I %S/Inputs > %t.response
|
|
// RUN: diff -u %s.response %t.response
|
|
// RUN: rm %t.m
|
|
|
|
// RUN: echo '#include "header2.h"' > %t.m
|
|
// RUN: %sourcekitd-test -req=interface-gen -header %S/Inputs/header2.h -- -fsyntax-only %t.m -I %S/Inputs > %t.header2.response
|
|
// RUN: diff -u %s.header2.response %t.header2.response
|