blob: ea40e61afb0dc6d2d1dba8f6a50a3974ec231be9 [file] [log] [blame]
Steve Naroffe2ef8152008-04-04 14:32:09 +00001// RUN: clang %s -verify -fsyntax-only
2
3typedef int int32_t;
4typedef unsigned char Boolean;
5
6void func() {
7 int32_t *vector[16];
8 const char compDesc[16 + 1];
9 int32_t compCount = 0;
10 if (_CFCalendarDecomposeAbsoluteTimeV(compDesc, vector, compCount)) { // expected-error{{previous implicit declaration is here}}
11 }
12 return ((void *)0);
13}
14Boolean _CFCalendarDecomposeAbsoluteTimeV(const char *componentDesc, int32_t **vector, int32_t count) { // expected-error{{conflicting types for '_CFCalendarDecomposeAbsoluteTimeV'}}
15 return 0;
16}
17