1// Radar 3926484
2
3// { dg-do compile }
4
5#include "../objc-obj-c++-shared/TestsuiteObject.h"
6#include <iostream>
7
8@interface Greeter : TestsuiteObject
9- (void) greet: (const char *)msg;
10@end
11
12@implementation Greeter
13- (void) greet: (const char *)msg { std::cout << msg; }
14@end
15
16int
17main ()
18{
19  std::cout << "Hello from C++\n";
20  Greeter *obj = [Greeter new];
21  [obj greet: "Hello from Objective-C\n"];
22}
23
24/* { dg-final { scan-assembler-not "L_objc_msgSend\\\$non_lazy_ptr" } } */
25