blob: 51f08856518d0154633f6171ac0858617f9ba488 [file] [log] [blame]
Johnny Chenaf6e82f2011-07-12 23:18:03 +00001//===-- 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#include <stdio.h>
10
11char my_global_char = 'X';
12const char* my_global_str = "abc";
Johnny Chen0d0dff432011-07-13 00:31:31 +000013static int my_static_int = 228;
Johnny Chenaf6e82f2011-07-12 23:18:03 +000014
15int main (int argc, char const *argv[])
16{
17 printf("global char: %c\n", my_global_char);
18
19 printf("global str: %s\n", my_global_str);
Johnny Chen0d0dff432011-07-13 00:31:31 +000020
21 printf("argc + my_static_int = %d\n", (argc + my_static_int));
Johnny Chenaf6e82f2011-07-12 23:18:03 +000022
23 return 0;
24}