Manman Ren | 4f755de | 2013-10-08 00:08:49 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s -fsanitize=thread -relaxed-aliasing -O1 | FileCheck %s |
2 | |||||
3 | // Make sure we do not crash when relaxed-aliasing is on. | ||||
4 | // CHECK-NOT: !tbaa | ||||
5 | struct iterator { void *node; }; | ||||
6 | |||||
7 | struct pair { | ||||
8 | iterator first; | ||||
9 | pair(const iterator &a) : first(a) {} | ||||
10 | }; | ||||
11 | |||||
12 | void equal_range() { | ||||
13 | (void)pair(iterator()); | ||||
14 | } |