File tree Expand file tree Collapse file tree 7 files changed +11
-23
lines changed
test/Interop/Cxx/templates/Inputs Expand file tree Collapse file tree 7 files changed +11
-23
lines changed Original file line number Diff line number Diff line change 3
3
4
4
template <class T >
5
5
struct MagicWrapper {
6
- public:
7
6
T t;
8
- inline int callGetInt () const {
7
+ int callGetInt () const {
9
8
return t.getInt () + 5 ;
10
9
}
11
10
};
12
11
13
12
struct MagicNumber {
14
- public:
15
- inline int getInt () const { return 24 ; }
13
+ int getInt () const { return 24 ; }
16
14
};
17
15
18
16
typedef MagicWrapper<MagicNumber> WrappedMagicNumberA;
Original file line number Diff line number Diff line change 3
3
4
4
template <class T >
5
5
struct MagicWrapper {
6
- public:
7
6
T t;
8
- inline int callGetInt () const {
7
+ int callGetInt () const {
9
8
return t.getInt () + 5 ;
10
9
}
11
10
};
12
11
13
12
struct MagicNumber {
14
- public:
15
- inline int getInt () const { return 48 ; }
13
+ int getInt () const { return 48 ; }
16
14
};
17
15
18
16
inline int forceInstantiating () {
Original file line number Diff line number Diff line change 3
3
4
4
template <class T >
5
5
struct MagicWrapper {
6
- public:
7
6
T t;
8
- inline int callGetInt () const {
7
+ int callGetInt () const {
9
8
return t.getInt () + 5 ;
10
9
}
11
10
};
12
11
13
12
struct MagicNumber {
14
- public:
15
- inline int getInt () const { return 24 ; }
13
+ int getInt () const { return 24 ; }
16
14
};
17
15
18
16
inline MagicWrapper<MagicNumber> forceInstantiating () {
Original file line number Diff line number Diff line change 3
3
4
4
template <class T >
5
5
struct MagicWrapper {
6
- public:
7
6
T t;
8
- inline int getInt () const {
7
+ int getInt () const {
9
8
return t + 5 ;
10
9
}
11
10
};
Original file line number Diff line number Diff line change 3
3
4
4
template <class T >
5
5
struct MagicWrapper {
6
- public:
7
6
T t;
8
7
int callGetInt () const {
9
8
return t.getInt () + 5 ;
Original file line number Diff line number Diff line change 2
2
#define TEST_INTEROP_CXX_TEMPLATES_INPUTS_EXPLICIT_SPECIALIZATION_H
3
3
4
4
struct MagicNumber {
5
- public:
6
- inline int getInt () const { return 26 ; }
5
+ int getInt () const { return 26 ; }
7
6
};
8
7
9
8
template <class T > struct MagicWrapper {
10
- public:
11
9
T t;
12
- inline int callGetInt () const { return t.getInt () + 5 ; }
10
+ int callGetInt () const { return t.getInt () + 5 ; }
13
11
};
14
12
15
13
template <> struct MagicWrapper <MagicNumber> {
Original file line number Diff line number Diff line change 3
3
4
4
template <class T >
5
5
struct MagicWrapper {
6
- public:
7
6
T t;
8
- inline int callGetInt () const {
7
+ int callGetInt () const {
9
8
return t.getInt () + 5 ;
10
9
}
11
10
};
12
11
13
12
struct MagicNumber {
14
- public:
15
- inline int getInt () const { return 6 ; }
13
+ int getInt () const { return 6 ; }
16
14
};
17
15
18
16
using UsingWrappedMagicNumber = MagicWrapper<MagicNumber>;
You can’t perform that action at this time.
0 commit comments