29 lines · cpp
1// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACK2// RUN: not %clang_cc1 -fsyntax-only -fno-diagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACKLESS3// RUN: not %clang_cc1 -fsyntax-only -fno-diagnostics-show-note-include-stack -fdiagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACK4// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-show-note-include-stack -fno-diagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACKLESS5// RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s -check-prefix=STACKLESS6 7#include "Inputs/include.h"8int test() {9 return foo(1, 1);10}11 12bool macro(int x, int y) {13 return EQUALS(&x, y);14}15 16// STACK: error: no matching function for call to 'foo'17// STACK: In file included from18// STACK: note: candidate function not viable19// STACK: error: comparison between pointer and integer20// STACK: In file included from21// STACK: note: expanded from macro22 23// STACKLESS: error: no matching function for call to 'foo'24// STACKLESS-NOT: In file included from25// STACKLESS: note: candidate function not viable26// STACKLESS: error: comparison between pointer and integer27// STACKLESS-NOT: In file included from28// STACKLESS: note: expanded from macro29