1 // RUN: %clang_cc1 -fsyntax-only %s -std=c++14 -verify
3 // This is a test for an egregious hack in Clang that works around
4 // an issue with libstdc++'s detection of whether glibc provides a
5 // ::gets function. If there is no ::gets, ignore
9 // See PR18402 and gcc.gnu.org/PR77795 for more details.
13 #pragma GCC system_header
16 using ::getx
; // expected-error {{no member named 'getx'}}
22 #include "libstdcxx_pointer_return_false_hack.cpp"
25 using ::gets
; // expected-error {{no member named 'gets'}}