2009-04-16 05:30:51 +08:00
|
|
|
// Test this without pch.
|
2010-10-19 03:20:05 +08:00
|
|
|
// RUN: %clang_cc1 -include %s -fsyntax-only -verify %s
|
2009-04-16 05:30:51 +08:00
|
|
|
|
|
|
|
// Test with pch.
|
2010-10-19 03:20:05 +08:00
|
|
|
// RUN: %clang_cc1 -emit-pch -o %t %s
|
2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
|
2010-10-19 03:20:05 +08:00
|
|
|
|
|
|
|
#ifndef HEADER
|
|
|
|
#define HEADER
|
|
|
|
|
2012-07-12 03:58:23 +08:00
|
|
|
int f(int) __attribute__((visibility("default"), overloadable));
|
2016-06-30 17:40:38 +08:00
|
|
|
int g(int) __attribute__((abi_tag("foo", "bar", "baz"), no_sanitize("address", "memory")));
|
2010-10-19 03:20:05 +08:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
2017-06-28 05:31:31 +08:00
|
|
|
float f(float);
|
2009-04-16 05:30:51 +08:00
|
|
|
double f(double); // expected-error{{overloadable}}
|
2017-06-28 05:31:31 +08:00
|
|
|
// expected-note@-2{{previous unmarked overload}}
|
2016-05-18 08:16:51 +08:00
|
|
|
void h() { g(0); }
|
2010-10-19 03:20:05 +08:00
|
|
|
|
|
|
|
#endif
|