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:
David Chisnall 2009-08-31 16:53:06 +00:00
parent 9cf8bcb69d
commit 4dc74a0d9f
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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