1 //===-- main.c --------------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 #include <stdio.h>
9 
10 char my_global_char = 'X';
11 const char* my_global_str = "abc";
12 const char **my_global_str_ptr = &my_global_str;
13 static int my_static_int = 228;
14 
15 int 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);
20 
21     printf("argc + my_static_int = %d\n", (argc + my_static_int));
22 
23     return 0;
24 }
25