repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git]
/
test
/
Parser
/
cxx-typeof.cpp
blob
4c598e9517ed5606ff16ccbafda8950b9d3a8444
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
static void
test
() {
4
int
*
pi
;
5
int
x
;
6
typeof
pi
[
x
]
y
;
7
}
8
9
// Part of rdar://problem/8347416; from the gcc test suite.
10
struct
S
{
11
int
i
;
12
__typeof
(
S
::
i
)
foo
();
// expected-error {{invalid use of nonstatic data member 'i'}}
13
};