blob: f8d0080f57ac218cef4181bed6e8ef9d2fec67b5 [file] [log] [blame]
Chandler Carruth34b8e682011-03-27 20:00:08 +00001// RUN: %clang_cc1 -fsyntax-only -fdiagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACK
2// RUN: %clang_cc1 -fsyntax-only -fno-diagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACKLESS
3// RUN: %clang_cc1 -fsyntax-only -fno-diagnostics-show-note-include-stack -fdiagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACK
4// RUN: %clang_cc1 -fsyntax-only -fdiagnostics-show-note-include-stack -fno-diagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACKLESS
5// RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s -check-prefix=STACKLESS
6
7#include "Inputs/include.h"
8int test() {
9 return foo(1, 1);
10}
11
12// STACK: error: no matching function for call to 'foo'
13// STACK: In file included from
14// STACK: note: candidate function not viable
15
16// STACKLESS: error: no matching function for call to 'foo'
17// STACKLESS-NOT: In file included from
18// STACKLESS: note: candidate function not viable