Mercurial > hg > CbC > CbC_llvm
view clang/test/PCH/undefined-internal.c @ 180:680fa57a2f20
fix compile errors.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 May 2020 17:44:06 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line source
// RUN: %clang_cc1 -emit-pch %s -o %t // RUN: %clang_cc1 -include-pch %t %s -verify #ifndef HEADER_H #define HEADER_H static void f(); static void g(); void h() { f(); g(); } #else static void g() {} // expected-warning@5{{function 'f' has internal linkage but is not defined}} // expected-note@8{{used here}} #endif