1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 // expected-no-diagnostics
5 @interface NSDictionary
6 - (id)objectForKeyedSubscript:(id)key;
7 - (void)setObject:(id)object forKeyedSubscript:(id)key;
13 template <class T, class U = T> T tfoo(U x) { return x; }
17 NSString* result = foo[@"bar"] ? : foo[@"baz"];
19 int (*fn)(int) = (&tfoo<int> ?: 0);
22 const int &y = foo.random ?: x;