* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / obj-c++.dg / cxx-scope-2.mm
blob6444ebc3aadb8d35e46e4878b7c842a414c41b50
1 /* Make sure Objective-C++ can distinguish ObjC classes from C++ classes.  */
2 /* Author: Ziemowit Laski  <zlaski@apple.com> */
4 /* { dg-do compile } */
6 #include "../objc-obj-c++-shared/TestsuiteObject.h"
7 #include <iostream>
8 #include <string>
10 @interface iostream: TestsuiteObject
11 @end
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" } */
18   return 0;