1 /* { dg-options "-O2 -std=c++11 -fdump-ipa-inline" } */
6 virtual int val() { return 2; }
10 alignas(EmbeddedObject) char buffer[sizeof(EmbeddedObject)];
12 EmbeddedObject *obj() { return (EmbeddedObject*)buffer; }
13 Container() { new (buffer) EmbeddedObject(); }
20 __builtin_printf("%d\n", o.obj()->val());
22 /* { dg-final { scan-ipa-dump-not "__builtin_unreachable" "inline" } } */