blob: bd3b6489e710f65a290127bd967382726b19b833 [file] [log] [blame]
David Blaikieee123222017-02-08 20:51:11 +00001inline void f1(const char* fmt, ...) {
2 __builtin_va_list args;
3 __builtin_va_start(args, fmt);
David Blaikie9ffe5a32017-01-30 05:00:26 +00004}
David Blaikiee6b7c282017-04-11 20:46:34 +00005
6struct non_trivial_dtor {
7 ~non_trivial_dtor();
8};
9
10struct implicit_dtor {
11 non_trivial_dtor d;
12};
13
14struct uninst_implicit_dtor {
15 non_trivial_dtor d;
16};
17
18inline void use_implicit_dtor() {
19 implicit_dtor d;
20}
21
22template <typename T>
23void inst() {
24}
25
26inline void inst_decl() {
27 // cause inst<int>'s declaration to be instantiated, without a definition.
28 (void)sizeof(&inst<int>);
29 inst<float>();
30}
David Blaikiee60aa512017-04-12 21:14:04 +000031
32asm("narf");