David Blaikie | 0b7fad6 | 2014-12-08 21:48:57 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -g -std=c++11 -S -emit-llvm %s -o - | FileCheck %s |
2 | |||||
3 | int src(); int* sink(); | ||||
4 | |||||
5 | void f1() { | ||||
6 | #line 100 | ||||
7 | * // The store for the assignment should be attributed to the start of the | ||||
8 | // assignment expression here, regardless of the location of subexpressions. | ||||
9 | ( | ||||
10 | sink | ||||
11 | ( | ||||
12 | ) | ||||
13 | + | ||||
14 | 3 | ||||
15 | ) | ||||
16 | = | ||||
17 | src | ||||
18 | ( | ||||
19 | ) | ||||
20 | + | ||||
21 | 42 | ||||
22 | ; | ||||
23 | // CHECK: store {{.*}}, !dbg [[DBG1:!.*]] | ||||
24 | } | ||||
25 | |||||
26 | // CHECK: [[DBG1]] = metadata !{i32 100, {{.*}} |