blob: f9bceee968d7176c417cea16482e56798178d741 [file] [log] [blame]
Rafael Espindola96e78132013-07-04 16:16:58 +00001// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACK
2// RUN: not %clang_cc1 -fsyntax-only -fno-diagnostics-show-note-include-stack %s 2>&1 | FileCheck %s -check-prefix=STACKLESS
3// 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// 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// RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s -check-prefix=STACKLESS
Chandler Carruth34b8e682011-03-27 20:00:08 +00006
7#include "Inputs/include.h"
8int test() {
9 return foo(1, 1);
10}
11
Richard Trieubb6a5672011-05-26 20:49:16 +000012bool macro(int x, int y) {
13 return EQUALS(&x, y);
14}
15
Chandler Carruth34b8e682011-03-27 20:00:08 +000016// STACK: error: no matching function for call to 'foo'
17// STACK: In file included from
18// STACK: note: candidate function not viable
Richard Trieubb6a5672011-05-26 20:49:16 +000019// STACK: error: comparison between pointer and integer
20// STACK: In file included from
Chandler Carruth9875c602011-10-24 18:51:08 +000021// STACK: note: expanded from macro
Chandler Carruth34b8e682011-03-27 20:00:08 +000022
23// STACKLESS: error: no matching function for call to 'foo'
24// STACKLESS-NOT: In file included from
25// STACKLESS: note: candidate function not viable
Richard Trieubb6a5672011-05-26 20:49:16 +000026// STACKLESS: error: comparison between pointer and integer
27// STACKLESS-NOT: In file included from
Chandler Carruth9875c602011-10-24 18:51:08 +000028// STACKLESS: note: expanded from macro