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