// RUN: %clang_cc1 -fsyntax-only -std=c99 -Wno-nullability-declspec -pedantic %s -verify

_Nonnull int *ptr; // expected-warning{{type nullability specifier '_Nonnull' is a Clang extension}}

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnullability-extension"
_Nonnull int *ptr2; // no-warning
#pragma clang diagnostic pop

#if __has_feature(nullability)
#  error Nullability should not be supported in C under -pedantic -std=c99
#endif

#if !__has_extension(nullability)
#  error Nullability should always be supported as an extension
#endif

// RUN: %clang_cc1 -fsyntax-only -std=c99 -Wno-nullability-declspec -pedantic %s -verify

_Nonnull int *ptr; // expected-warning{{type nullability specifier '_Nonnull' is a Clang extension}}

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnullability-extension"
_Nonnull int *ptr2; // no-warning
#pragma clang diagnostic pop

#if !__has_feature(nullability)
#  error Nullability should always be supported
#endif

#if !__has_extension(nullability)
#  error Nullability should always be supported as an extension
#endif

Fix a test case broken by my previous commit.
Fix a test case broken by my previous commit.

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@240977 91177308-0d34-0410-b5e6-96231b3b80d8
