22 lines · c
1// Test this without pch.2// RUN: %clang_cc1 -include %s -fsyntax-only -verify %s3 4// Test with pch.5// RUN: %clang_cc1 -emit-pch -o %t %s6// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s 7 8#ifndef HEADER9#define HEADER10 11int f(int) __attribute__((visibility("default"), overloadable));12int g(int) __attribute__((abi_tag("foo", "bar", "baz"), no_sanitize("address", "memory")));13 14#else15 16float f(float);17double f(double); // expected-error{{overloadable}}18 // expected-note@-2{{previous unmarked overload}}19void h(void) { g(0); }20 21#endif22