brintos

brintos / llvm-project-archived public Read only

0
0
Text · 579 B · 76ad655 Raw
36 lines · c
1inline void f1(const char* fmt, ...) {2  __builtin_va_list args;3  __builtin_va_start(args, fmt);4}5 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}31 32__attribute__((always_inline)) inline void always_inl() {33}34 35asm("narf");36