Pirama Arumuga Nainar | 3ea9e33 | 2015-04-08 08:57:32 -0700 | [diff] [blame] | 1 | // RUN: %clang_cc1 -std=c++11 -fsanitize=signed-integer-overflow,integer-divide-by-zero,float-divide-by-zero,shift-base,shift-exponent,unreachable,return,vla-bound,alignment,null,vptr,object-size,float-cast-overflow,bool,enum,array-bounds,function -emit-llvm %s -o - -triple x86_64-linux-gnu | FileCheck %s |
Nick Lewycky | c569917 | 2013-11-08 23:00:12 +0000 | [diff] [blame] | 2 | |
3 | bool GetOptionalBool(bool *value); | ||||
4 | bool GetBool(bool default_value) { | ||||
5 | // CHECK-LABEL: @_Z7GetBoolb | ||||
6 | // CHECK-NOT: select | ||||
7 | bool value; | ||||
8 | return GetOptionalBool(&value) ? value : default_value; | ||||
9 | } |