]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Sema/implicit-decl.c
Updaet clang to 92395.
[FreeBSD/FreeBSD.git] / test / Sema / implicit-decl.c
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
2
3 typedef int int32_t;
4 typedef unsigned char Boolean;
5
6 void func() {
7    int32_t *vector[16];
8    const char compDesc[16 + 1];
9    int32_t compCount = 0;
10    if (_CFCalendarDecomposeAbsoluteTimeV(compDesc, vector, compCount)) { // expected-note {{previous implicit declaration is here}}
11    }
12    return ((void *)0); // expected-warning {{void function 'func' should not return a value}}
13 }
14 Boolean _CFCalendarDecomposeAbsoluteTimeV(const char *componentDesc, int32_t **vector, int32_t count) { // expected-error{{conflicting types for '_CFCalendarDecomposeAbsoluteTimeV'}}
15  return 0;
16 }
17