llvm-project/clang/test/Sema/deref.c

29 lines
323 B
C
Raw Normal View History

// RUN: clang -fsyntax-only -verify -std=c90 %s
void
foo (void)
{
struct b;
struct b* x = 0;
struct b* y = &*x;
}
void foo2 (void)
{
typedef int (*arrayptr)[];
arrayptr x = 0;
arrayptr y = &*x;
}
void foo3 (void)
{
void* x = 0;
void* y = &*x;
}
extern const void cv1;
const void *foo4 (void)
{
return &cv1;
}