John McCall | 9f084a3 | 2011-07-06 00:26:06 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-arc-cxxlib=libstdc++ -fobjc-nonfragile-abi -fobjc-runtime-has-weak -verify %s |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 2 | |
| 3 | @interface A @end |
| 4 | |
| 5 | int check0[std::__is_scalar<__strong id>::__value? -1 : 1]; |
| 6 | int check1[std::__is_scalar<__weak id>::__value? -1 : 1]; |
| 7 | int check2[std::__is_scalar<__autoreleasing id>::__value? -1 : 1]; |
| 8 | int check3[std::__is_scalar<__strong A*>::__value? -1 : 1]; |
| 9 | int check4[std::__is_scalar<__weak A*>::__value? -1 : 1]; |
| 10 | int check5[std::__is_scalar<__autoreleasing A*>::__value? -1 : 1]; |