blob: 383c51386ab70d0c34830bff43fece132b328d81 [file] [log] [blame]
Chandler Carruth0ccd98d2012-07-20 00:49:51 +00001// RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s
2// RUN: cp %s %t
3// RUN: cp %S/fixit-include.h %T
4// RUN: not %clang_cc1 -fsyntax-only -fixit %t
5// RUN: %clang_cc1 -Wall -pedantic %t
Argyrios Kyrtzidisda313592012-09-27 01:42:07 +00006// RUN: %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
Chandler Carruth0ccd98d2012-07-20 00:49:51 +00007
8#include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" instead}}
Argyrios Kyrtzidisda313592012-09-27 01:42:07 +00009// CHECK: fix-it:{{.*}}:{8:10-8:27}
Chandler Carruth0ccd98d2012-07-20 00:49:51 +000010
11#pragma does_not_exist // expected-warning {{unknown pragma ignored}}
12
13int main( void ) {
14 return 0;
15}