repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
auto-invalid-init-crash.cpp
blob
f727473dd608571d7cb46eca5a086aadc215d509
1
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -fno-recovery-ast -verify %s
2
3
namespace
std
{
4
template
<
typename
>
5
class
initializer_list
{};
6
int
a
;
7
auto
c
=
a
, &
d
= {
a
};
// expected-error {{'auto' deduced as 'int'}} \
8
expected
-
error
{{
non
-
const
lvalue reference to type
}}
9
}
// namespace std