Skip to content
Snippets Groups Projects
Commit 4eb6870d authored by Axel Naumann's avatar Axel Naumann
Browse files

The "." is needed for lit to parse the regex; require 5*hex.

parent c66d1465
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ const char* b = "b" // CHECK: (const char *) "b" ...@@ -14,7 +14,7 @@ const char* b = "b" // CHECK: (const char *) "b"
const char* n = 0 // CHECK: (const char *) nullptr const char* n = 0 // CHECK: (const char *) nullptr
struct C {int d;} E = {22}; struct C {int d;} E = {22};
E // CHECK: (struct C &) @0x{{[0-9A-Fa-f]{6,12}}} E // CHECK: (struct C &) @0x{{[0-9A-Fa-f]{5,12}.}}
E.d // CHECK: (int) 22 E.d // CHECK: (int) 22
#include <string> #include <string>
...@@ -56,5 +56,5 @@ typedef void (*F_t)(int); ...@@ -56,5 +56,5 @@ typedef void (*F_t)(int);
F_t fp = 0; F_t fp = 0;
fp // CHECK: (F_t) Function @0x0 fp // CHECK: (F_t) Function @0x0
#include <stdio.h> #include <stdio.h>
fp = (F_t)printf // CHECK: (F_t) Function @0x{{[0-9A-Fa-f]{6,12}}} fp = (F_t)printf // CHECK: (F_t) Function @0x{{[0-9A-Fa-f]{5,12}.}}
.q .q
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment