3d1dcd9bfd
http://llvm.org/svn/llvm-project/cfe/branches/release_28@114020 Approved by: rpaulo (mentor)
14 lines
279 B
C++
14 lines
279 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
static void test() {
|
|
int *pi;
|
|
int x;
|
|
typeof pi[x] y;
|
|
}
|
|
|
|
// Part of rdar://problem/8347416; from the gcc test suite.
|
|
struct S {
|
|
int i;
|
|
__typeof(S::i) foo(); // expected-error {{invalid use of nonstatic data member 'i'}}
|
|
};
|