main.c revision de2f1ed2a5dfe306aa6c5d48baf65808608cefb5
1//===-- main.c --------------------------------------------------*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10int string_not_empty (const char *s)
11{
12    if (s && s[0])
13        return 1;
14    return 0;
15}
16
17int main (int argc, char const *argv[])
18{
19    int (*callback)(const char *) = string_not_empty;
20
21    return callback(0); // Set break point at this line.
22}
23