blob: 31ae805c9a19bff60610dc60fb19b906d5cbfa1f [file] [log] [blame]
Richard Smithd28ac5b2014-03-22 23:33:22 +00001#include "cxx-irgen-top.h"
2
3S<int> s;
Richard Smith04d05b52014-03-23 00:27:18 +00004
5inline int instantiate_min() {
6 return min(1, 2);
7}
Richard Smithcd45dbc2014-04-19 03:48:30 +00008
9inline int instantiate_CtorInit(CtorInit<int> i = CtorInit<int>()) {
10 return i.a;
11}
Richard Smith6de7a242014-07-31 23:46:44 +000012
13namespace ImplicitSpecialMembers {
14 inline void create_left() {
15 // Trigger declaration, but not definition, of special members.
16 B b(0); C c(0); D d(0);
17 // Trigger definition of copy constructor.
18 C c2(c); D d2(d);
19 }
20}
Richard Smith4d235792014-08-07 18:53:08 +000021
22namespace OperatorDeleteLookup {
23 // Trigger definition of A::~A() and lookup of operator delete.
24 // Likewise for B<int>::~B().
25 inline void f() { A a; B<int> b; }
26}