1 //===-- main.cpp ------------------------------------------------*- 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 
9 // This test verifies the correct handling of program counter jumps.
10 
11 int otherfn();
12 
13 template<typename T>
14 T min(T a, T b)
15 {
16     if (a < b)
17     {
18         return a; // 1st marker
19     } else {
20         return b; // 2nd marker
21     }
22 }
23 
24 int main ()
25 {
26     int i;
27     double j;
28     int min_i_a = 4, min_i_b = 5;
29     double min_j_a = 7.0, min_j_b = 8.0;
30     i = min(min_i_a, min_i_b); // 3rd marker
31     j = min(min_j_a, min_j_b); // 4th marker
32 
33     return 0;
34 }
35