summaryrefslogtreecommitdiff
path: root/test/Modules/malformed-overload.m
blob: e080201d8e4234ea7d8d4092b4958565db051ac7 (plain)
1
2
3
4
5
6
7
8
9
// RUN: rm -rf %t
// RUN: %clang_cc1 -fsyntax-only -I%S/Inputs/malformed-overload -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -verify %s
NSLog(@"%@", path); // expected-error {{expected parameter declarator}} expected-error {{expected ')'}} expected-warning {{type specifier missing}} expected-warning {{incompatible redeclaration}} expected-note {{to match this '('}} expected-note {{'NSLog' is a builtin with type}}
#import "X.h"

@class NSString;
void f(NSString *a) {
 NSLog(@"***** failed to get URL for %@", a);
}