blob: 8873e76098cac6bb2aadb356d406349240f9c21e [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc %s -verify -fsyntax-only
Steve Naroffe2ef8152008-04-04 14:32:09 +00002
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;
Chris Lattner5f4a6822008-11-23 23:12:31 +000010 if (_CFCalendarDecomposeAbsoluteTimeV(compDesc, vector, compCount)) { // expected-note {{previous implicit declaration is here}}
Steve Naroffe2ef8152008-04-04 14:32:09 +000011 }
Chris Lattner65ce04b2008-12-18 02:01:17 +000012 return ((void *)0); // expected-warning {{void function 'func' should not return a value}}
Steve Naroffe2ef8152008-04-04 14:32:09 +000013}
14Boolean _CFCalendarDecomposeAbsoluteTimeV(const char *componentDesc, int32_t **vector, int32_t count) { // expected-error{{conflicting types for '_CFCalendarDecomposeAbsoluteTimeV'}}
15 return 0;
16}
17