| 1 |
/* Make sure Objective-C++ can distinguish ObjC classes from C++ classes. */ |
| 2 |
/* Author: Ziemowit Laski <[email protected]> */ |
| 3 |
|
| 4 |
/* { dg-do compile } */ |
| 5 |
|
| 6 |
#include "../objc-obj-c++-shared/TestsuiteObject.h" |
| 7 |
#include <iostream> |
| 8 |
#include <string> |
| 9 |
|
| 10 |
@interface iostream: TestsuiteObject |
| 11 |
@end |
| 12 |
|
| 13 |
int main(void) { |
| 14 |
id i = [std::iostream new]; /* { dg-error "not an Objective\\-C class name or alias" } */ |
| 15 |
i = [iostream new]; |
| 16 |
i = [std::basic_string<char> new]; /* { dg-error "not an Objective\\-C class name or alias" } */ |
| 17 |
|
| 18 |
return 0; |
| 19 |
} |