Files
swift-mirror/test/IRGen/Inputs/usr/include/NSOption.h
Arnold Schwaighofer 3d34fb3b07 IRGen: Fix linkage for shared declarations
They need external linkage not linkonce_odr which can only be used by defintions
not declarations.
This got exposed by clang imported protocol witness table declarations.
They get assigned shared linkage since they are potentially not unique.

rdar://26563441
2017-09-26 13:26:07 -07:00

8 lines
223 B
C

#define CF_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type
#define NS_OPTIONS(_type, _name) CF_OPTIONS(_type, _name)
typedef NS_OPTIONS(int, SomeOptions) {
SomeOptionsFoo = 1,
SomeOptionsBar = 2,
};