// RUN: %clang_cc1 -Wpedantic -fsyntax-only %s -verify

void foo() __attribute__((diagnose_if(1, "", "error"))); // expected-warning{{'diagnose_if' is a clang extension}}
void foo(int a) __attribute__((diagnose_if(a, "", "error"))); // expected-warning{{'diagnose_if' is a clang extension}}
// FIXME: When diagnose_if gets a CXX11 spelling, this should be enabled.
#if 0
[[clang::diagnose_if(a, "", "error")]] void foo(double a);
#endif

Add a test for diagnose_if.
Add a test for diagnose_if.

Forgot to add this file as a part of r291418.


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