OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [cxx-scope-2.mm] - Blame information for rev 703

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 703 jeremybenn
/* Make sure Objective-C++ can distinguish ObjC classes from C++ classes.  */
2
/* Author: Ziemowit Laski   */
3
 
4
/* { dg-do compile } */
5
 
6
#include "../objc-obj-c++-shared/TestsuiteObject.h"
7
#include 
8
#include 
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 new];  /* { dg-error "not an Objective\\-C class name or alias" } */
17
 
18
  return 0;
19
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.