Debian Codegraph @

gcc/testsuite/g++.dg/ipa/pr64049-1.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-ipa-inline" } */
3
4 #include "pr64049.h"
5
6 EnumStatusCode
7 ValueHelper::getLocalizedText (const ValueStruct* pValueStruct, LocalizedText& target)
8 {
9 if (pValueStruct && pValueStruct->dataType == 0 && pValueStruct->arrayType == 0)
10 {
11 _ASSERTION (pValueStruct->value.LocalizedText, "Unexpected null pointer");
12 return LocalizedTextSet (target.getInternHandle (), pValueStruct->value.LocalizedText);
13 }
14 else
15 {
16 return StatusCode::ERROR;
17 }
18 }
19
20 LocalizedText
21 ValueHelper::getLocalizedText (const ValueStruct* pValueStruct)
22 {
23 LocalizedText returnValue;
24 EnumStatusCode status = getLocalizedText (pValueStruct, returnValue);
25 _ASSERTION (StatusCode::isSUCCEEDED (status), "Conversion failed");
26 return returnValue;
27 }
28
29 EnumStatusCode
30 LocalizedTextSet (LocalizedTextStruct* pTarget, LocalizedTextStruct* pSource)
31 {
32 __builtin_strcpy (pTarget->getT (), pSource->getT ());
33 return StatusCode::SUCCESS;
34 }
35
36 /* { dg-final { scan-ipa-dump-not "__builtin_unreachable" "inline" } } */