forked from OSchip/llvm-project
Added test cases for presence and absence of __has_feature(objc_nonfragile_abi) with and without -fobjc-nonfragile-abi.
llvm-svn: 80593
This commit is contained in:
parent
9cf8bcb69d
commit
4dc74a0d9f
|
@ -0,0 +1,8 @@
|
|||
// RUN: clang-cc -fobjc-nonfragile-abi %s
|
||||
#ifndef __has_feature
|
||||
#error Should have __has_feature
|
||||
#endif
|
||||
|
||||
#if !__has_feature(objc_nonfragile_abi)
|
||||
#error Non-fragile ABI used for compilation but feature macro not set.
|
||||
#endif
|
|
@ -0,0 +1,8 @@
|
|||
// RUN: clang-cc %s
|
||||
#ifndef __has_feature
|
||||
#error Should have __has_feature
|
||||
#endif
|
||||
|
||||
#if __has_feature(objc_nonfragile_abi)
|
||||
#error Non-fragile ABI not used for compilation but feature macro set.
|
||||
#endif
|
Loading…
Reference in New Issue