diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2010-09-17 15:54:40 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2010-09-17 15:54:40 +0000 | 
| commit | 3d1dcd9bfdb15c49ee34d576a065079ac5c4d29f (patch) | |
| tree | 0bbe07708f7571f8b5291f6d7b96c102b7c99dee /test/SemaTemplate/instantiate-function-1.cpp | |
| parent | a0482fa4e7fa27b01184f938097f0666b78016dd (diff) | |
Notes
Diffstat (limited to 'test/SemaTemplate/instantiate-function-1.cpp')
| -rw-r--r-- | test/SemaTemplate/instantiate-function-1.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp index a293e9a788de..651c02c6cdcf 100644 --- a/test/SemaTemplate/instantiate-function-1.cpp +++ b/test/SemaTemplate/instantiate-function-1.cpp @@ -72,7 +72,7 @@ template<typename T, typename U, typename V> struct X6 {      if (T x = t) {        t = x;      } -    return v; +    return v; // expected-error{{cannot initialize return object of type}}    }  }; @@ -178,10 +178,10 @@ template<typename T> struct IndirectGoto0 {    prior:      T prior_label; -    prior_label = &&prior; +    prior_label = &&prior; // expected-error{{assigning to 'int'}}      T later_label; -    later_label = &&later; +    later_label = &&later; // expected-error{{assigning to 'int'}}    later:      (void)(1+1);  | 
