brintos

brintos / llvm-project-archived public Read only

0
0
Text · 331 B · ec921a4 Raw
10 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -fsyntax-only -fno-recovery-ast -verify %s2 3namespace std {4template <typename E>5class initializer_list { const E *a, *b; };6int a;7auto c = a, &d = {a}; // expected-error {{'auto' deduced as 'int'}} \8                         expected-error {{non-const lvalue reference to type}}9} // namespace std10