blob: 830cde9b9f90d939b790c866473e45eb19c4abec [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %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 Lattnere0303582010-01-09 20:43:19 +000010 if (_CFCalendarDecomposeAbsoluteTimeV(compDesc, vector, compCount)) { // expected-note {{previous implicit declaration is here}} \
11 expected-warning {{implicit declaration of function '_CFCalendarDecomposeAbsoluteTimeV' is invalid in C99}}
Steve Naroffe2ef8152008-04-04 14:32:09 +000012 }
Chris Lattner65ce04b2008-12-18 02:01:17 +000013 return ((void *)0); // expected-warning {{void function 'func' should not return a value}}
Steve Naroffe2ef8152008-04-04 14:32:09 +000014}
15Boolean _CFCalendarDecomposeAbsoluteTimeV(const char *componentDesc, int32_t **vector, int32_t count) { // expected-error{{conflicting types for '_CFCalendarDecomposeAbsoluteTimeV'}}
16 return 0;
17}
18