blob: 140008a4cba04133afae2b6520625d757275049f [file] [log] [blame]
Douglas Gregorb2809a02009-02-18 06:34:51 +00001// RUN: clang -fsyntax-only -verify %s
2
3int &foo(int);
4double &foo(double);
5void foo(...) __attribute__((__unavailable__)); // expected-note{{unavailable function is declared here}}
6
7void test_foo(short* sp) {
8 int &ir = foo(1);
9 double &dr = foo(1.0);
10 foo(sp); // expected-error{{call to function 'foo' that has been intentionally made unavailable}}
11}