Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Side by Side Diff: gcc/gcc/testsuite/obj-c++.dg/cxx-scope-2.mm

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gcc/gcc/testsuite/obj-c++.dg/cxx-ivars-2.mm ('k') | gcc/gcc/testsuite/obj-c++.dg/defs.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Make sure Objective-C++ can distinguish ObjC classes from C++ classes. */ 1 /* Make sure Objective-C++ can distinguish ObjC classes from C++ classes. */
2 /* Author: Ziemowit Laski <zlaski@apple.com> */ 2 /* Author: Ziemowit Laski <zlaski@apple.com> */
3 3
4 /* { dg-do compile } */ 4 /* { dg-do compile } */
5 5
6 #include <objc/Object.h> 6 #include "../objc-obj-c++-shared/Object1.h"
7 #include <iostream> 7 #include <iostream>
8 #include <string> 8 #include <string>
9 9
10 @interface iostream: Object 10 @interface iostream: Object
11 @end 11 @end
12 12
13 int main(void) { 13 int main(void) {
14 id i = [std::iostream new]; /* { dg-warning "not an Objective\\-C class name or alias" } */ 14 id i = [std::iostream new]; /* { dg-warning "not an Objective\\-C class name or alias" } */
15 i = [iostream new]; 15 i = [iostream new];
16 i = [std::basic_string<char> new]; /* { dg-warning "not an Objective\\-C clas s name or alias" } */ 16 i = [std::basic_string<char> new]; /* { dg-warning "not an Objective\\-C clas s name or alias" } */
17 17
18 return 0; 18 return 0;
19 } 19 }
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/obj-c++.dg/cxx-ivars-2.mm ('k') | gcc/gcc/testsuite/obj-c++.dg/defs.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698