example.cpp 381 B

12345678910111213141516
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #include "example.h"
  5. #include <stdlib.h>
  6. #include <iostream>
  7. auto HelloWorld() -> void { std::cout << "Hello World!\n"; }
  8. auto main() -> int {
  9. HelloWorld();
  10. return EXIT_SUCCESS;
  11. }