minix/external/bsd/llvm/dist/clang/test/SemaObjCXX/arc-libstdcxx.mm
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

11 lines
524 B
Text

// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-arc-cxxlib=libstdc++ -fobjc-runtime-has-weak -verify %s
// expected-no-diagnostics
@interface A @end
int check0[std::__is_scalar<__strong id>::__value? -1 : 1];
int check1[std::__is_scalar<__weak id>::__value? -1 : 1];
int check2[std::__is_scalar<__autoreleasing id>::__value? -1 : 1];
int check3[std::__is_scalar<__strong A*>::__value? -1 : 1];
int check4[std::__is_scalar<__weak A*>::__value? -1 : 1];
int check5[std::__is_scalar<__autoreleasing A*>::__value? -1 : 1];