1*925213b0SRafael Espindola // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACK
2*925213b0SRafael Espindola // RUN: not %clang_cc1 -fsyntax-only -fno-diagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACKLESS
3*925213b0SRafael Espindola // RUN: not %clang_cc1 -fsyntax-only -fno-diagnostics-show-note-include-stack -fdiagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACK
4*925213b0SRafael Espindola // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-show-note-include-stack -fno-diagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACKLESS
5*925213b0SRafael Espindola // RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s -check-prefix=STACKLESS
624284afaSChandler Carruth
724284afaSChandler Carruth #include "Inputs/include.h"
test()824284afaSChandler Carruth int test() {
924284afaSChandler Carruth return foo(1, 1);
1024284afaSChandler Carruth }
1124284afaSChandler Carruth
macro(int x,int y)1217afcbe5SRichard Trieu bool macro(int x, int y) {
1317afcbe5SRichard Trieu return EQUALS(&x, y);
1417afcbe5SRichard Trieu }
1517afcbe5SRichard Trieu
1624284afaSChandler Carruth // STACK: error: no matching function for call to 'foo'
1724284afaSChandler Carruth // STACK: In file included from
1824284afaSChandler Carruth // STACK: note: candidate function not viable
1917afcbe5SRichard Trieu // STACK: error: comparison between pointer and integer
2017afcbe5SRichard Trieu // STACK: In file included from
218c43e663SChandler Carruth // STACK: note: expanded from macro
2224284afaSChandler Carruth
2324284afaSChandler Carruth // STACKLESS: error: no matching function for call to 'foo'
2424284afaSChandler Carruth // STACKLESS-NOT: In file included from
2524284afaSChandler Carruth // STACKLESS: note: candidate function not viable
2617afcbe5SRichard Trieu // STACKLESS: error: comparison between pointer and integer
2717afcbe5SRichard Trieu // STACKLESS-NOT: In file included from
288c43e663SChandler Carruth // STACKLESS: note: expanded from macro
29