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