llvm-project
21 строка · 564.0 Байт
1// Test this without pch.
2// RUN: %clang_cc1 -include %s -fsyntax-only -verify %s
3
4// Test with pch.
5// RUN: %clang_cc1 -emit-pch -o %t %s
6// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
7
8#ifndef HEADER
9#define HEADER
10
11int f(int) __attribute__((visibility("default"), overloadable));
12int g(int) __attribute__((abi_tag("foo", "bar", "baz"), no_sanitize("address", "memory")));
13
14#else
15
16float f(float);
17double f(double); // expected-error{{overloadable}}
18// expected-note@-2{{previous unmarked overload}}
19void h(void) { g(0); }
20
21#endif
22