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
/
SemaTemplate
/
instantiate-decl-dtor.cpp
blob
193d9764c28cce33711d8b5f428622eb762773df
1
// RUN: %clang_cc1 %s -fsyntax-only -verify
2
3
template
<
typename T
>
struct
A
{
4
T x
;
5
A
(
int
y
) {
x
=
y
; }
6
~
A
() { *
x
=
10
; }
// expected-error {{indirection requires pointer operand}}
7
};
8
9
void
a
() {
10
A
<
int
>
b
=
10
;
// expected-note {{requested here}}
11
}