1 //===-- a.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 extern int b_function (); 9 10 int a_init() 11 { 12 return 234; 13 } 14 15 int a_global = a_init(); 16 17 extern "C" int 18 a_function () 19 { 20 return b_function (); 21 } 22